Feb 12, 2009

how to reverse Lower nibble and higher nibble in a byte.

how to reverse Lower nibble and higher nibble in a byte.
b = (b >> 4) | (b << 4) ; / if b is unsigned
b = ((b >> 4)&15) | (b << 4) ;//if b is signed

No comments:

Post a Comment