• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

/home/pascal/depot/filedata/ext/libpolder/ress/EndianSwap/byteswap.h

00001 /******************************************************************************
00002 
00003  *****************************************************************************/
00004 #ifndef ENDIANSWAP_BYTESWAP_H
00005 #define ENDIANSWAP_BYTESWAP_H
00006 
00007 
00008 #define bswap_32(x) \
00009      ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >>  8) |               \
00010       (((x) & 0x0000ff00) <<  8) | (((x) & 0x000000ff) << 24))
00011  
00012 #define bswap_16(x) \
00013      ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
00014 
00015 #endif

Generated on Thu Feb 14 2013 17:59:03 for filedata.kdevelop by  doxygen 1.7.1