comparison bswap.h @ 30:80045db7439a src

OS/2 support by KO Myung-Hun, komh chollian net
author diego
date Thu, 09 Oct 2008 22:04:24 +0000
parents 98951f8ec89c
children
comparison
equal deleted inserted replaced
29:dfcb735f711e 30:80045db7439a
71 * problems so beware. 71 * problems so beware.
72 * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such 72 * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such
73 * functionality! 73 * functionality!
74 */ 74 */
75 75
76 #elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) 76 #elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__)
77 #define B2N_16(x) \ 77 #define B2N_16(x) \
78 x = ((((x) & 0xff00) >> 8) | \ 78 x = ((((x) & 0xff00) >> 8) | \
79 (((x) & 0x00ff) << 8)) 79 (((x) & 0x00ff) << 8))
80 #define B2N_32(x) \ 80 #define B2N_32(x) \
81 x = ((((x) & 0xff000000) >> 24) | \ 81 x = ((((x) & 0xff000000) >> 24) | \