Not sure if the logic is correct.
y = 0;
t = 0;
while(x)
{
y |= ((x&1) << t);
t++;
x >>= 2;
}
Posted 16 October 2012 - 01:13 PM
y = 0;
t = 0;
while(x)
{
y |= ((x&1) << t);
t++;
x >>= 2;
}
Posted 16 October 2012 - 01:12 PM
y = 0;
t = 0;
while(x)
{
y |= ((x&1) << t);
t++;
x >> 2;
}
Posted 16 October 2012 - 01:12 PM
y = 0;
while(x)
{
y |= ((x&1) << t);
t++;
x >> 2;
}
Posted 16 October 2012 - 01:11 PM
Posted 16 October 2012 - 01:11 PM