1 Index: squid3/include/squid_endian.h
2 diff -c squid3/include/squid_endian.h:1.2 squid3/include/squid_endian.h:1.3
3 *** squid3/include/squid_endian.h:1.2 Thu Aug 7 07:31:34 2003
4 --- squid3/include/squid_endian.h Sat Aug 16 17:32:29 2003
7 # define bswap16(x) bswap_16(x)
10 ! ((((u_int16_t)x) >> 8) & 0xff) | ((((u_int16_t)x) & 0xff) << 8))
12 #endif /* ! HAVE_BSWAP16 && ! defined(bswap16) */
13 #if ! HAVE_BSWAP32 && ! defined(bswap32)
15 # define bswap16(x) bswap_16(x)
18 ! (((((u_int16_t)(x)) >> 8) & 0xff) | ((((u_int16_t)(x)) & 0xff) << 8))
20 #endif /* ! HAVE_BSWAP16 && ! defined(bswap16) */
21 #if ! HAVE_BSWAP32 && ! defined(bswap32)
24 # define bswap32(x) bswap_32(x)
27 ! (((((u_int32_t)x) & 0xff000000) >> 24) | \
28 ! ((((u_int32_t)x) & 0x00ff0000) >> 8) | \
29 ! ((((u_int32_t)x) & 0x0000ff00) << 8) | \
30 ! ((((u_int32_t)x) & 0x000000ff) << 24))
32 #endif /* ! HAVE_BSWAP32 && ! defined(bswap32) */
35 # define bswap32(x) bswap_32(x)
38 ! (((((u_int32_t)(x)) & 0xff000000) >> 24) | \
39 ! ((((u_int32_t)(x)) & 0x00ff0000) >> 8) | \
40 ! ((((u_int32_t)(x)) & 0x0000ff00) << 8) | \
41 ! ((((u_int32_t)(x)) & 0x000000ff) << 24))
43 #endif /* ! HAVE_BSWAP32 && ! defined(bswap32) */