Possible Duplicate:
Best Algorithm for Bit Reversal ( from MSB->LSB to LSB->MSB) in C
I have a 64-bit word and I want to do the following operations on it.
First I want to do a bit-swap (swap Bit 63 with Bit 0 swap Bit 62 with Bit 1 and so on)
Once the above operation is completed I want to do a byte-swap Swap between Byte 0 and Byte 7 Byte 1 and Byte 6 and so on.
Now we do have an inbuilt function in gcc linux to do the second part bswap_64().Is there any function do do the first part available in gcc linux C