Comment on A Neat Bitwise Trick for Swapping Even and Odd BitsparentComments−joezydeco8yThe question was an unsigned 8-bit input, not an arbitrary number.And the "trick" given in the answer still depends on a fixed number of input bits, no matter if it's 8, 32, or 10^100.
Comments
The question was an unsigned 8-bit input, not an arbitrary number.
And the "trick" given in the answer still depends on a fixed number of input bits, no matter if it's 8, 32, or 10^100.