Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualMisery

Posted 17 October 2012 - 01:11 AM

something like this?

Not sure if the logic is correct.

y = 0;
t = 0;
while(x)
{
	y |= ((x&1) << t);
	t++;
	x >>= 2;
}


Unfortunately it doesnt work Posted Image
But thanks for help anywayPosted Image

#1Misery

Posted 17 October 2012 - 01:11 AM

something like this?

Not sure if the logic is correct.

y = 0;
t = 0;
while(x)
{
	y |= ((x&1) << t);
	t++;
	x >>= 2;
}


Unfortunately it doesnt work :(
But thanks for help anyway :]

PARTNERS