src/common/bswap.h File Reference

Byte swapping. More...


Defines

#define bswap_16(num)   (((num) << 8) | ((num) >> 8))
#define bswap_32(num)
#define bswap_64(num)


Detailed Description

Byte swapping.


Define Documentation

#define bswap_32 ( num   ) 

Value:

( (((num) << 24)                       ) \
                | (((num) <<  8) & UINT32_C(0x00FF0000)) \
                | (((num) >>  8) & UINT32_C(0x0000FF00)) \
                | (((num) >> 24)                       ) )

#define bswap_64 ( num   ) 

Value:

( (((num) << 56)                               ) \
                | (((num) << 40) & UINT64_C(0x00FF000000000000)) \
                | (((num) << 24) & UINT64_C(0x0000FF0000000000)) \
                | (((num) <<  8) & UINT64_C(0x000000FF00000000)) \
                | (((num) >>  8) & UINT64_C(0x00000000FF000000)) \
                | (((num) >> 24) & UINT64_C(0x0000000000FF0000)) \
                | (((num) >> 40) & UINT64_C(0x000000000000FF00)) \
                | (((num) >> 56)                               ) )


Generated on Wed May 25 10:35:38 2011 for XZ Utils by  doxygen 1.5.5