bits swap within a byte

Kate Feng feng1 at bnl.gov
Thu Jun 8 17:06:42 UTC 2006


Is there any elegant built-in macro which does bits swap
within each byte or other alternatives ?  For example,
bit 0 <-> bit 7, bit 1 <->bit 6, bit 2 <->bit 5, bit3 <->bit 4 ?

Thanks,
Kate





More information about the users mailing list