]>
Commit | Line | Data |
---|---|---|
36aa8c36 JR |
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 | |
5 | *************** | |
6 | *** 84,90 **** | |
7 | # define bswap16(x) bswap_16(x) | |
8 | # else | |
9 | # define bswap16(x) \ | |
10 | ! ((((u_int16_t)x) >> 8) & 0xff) | ((((u_int16_t)x) & 0xff) << 8)) | |
11 | # endif | |
12 | #endif /* ! HAVE_BSWAP16 && ! defined(bswap16) */ | |
13 | #if ! HAVE_BSWAP32 && ! defined(bswap32) | |
14 | --- 84,90 ---- | |
15 | # define bswap16(x) bswap_16(x) | |
16 | # else | |
17 | # define bswap16(x) \ | |
18 | ! (((((u_int16_t)(x)) >> 8) & 0xff) | ((((u_int16_t)(x)) & 0xff) << 8)) | |
19 | # endif | |
20 | #endif /* ! HAVE_BSWAP16 && ! defined(bswap16) */ | |
21 | #if ! HAVE_BSWAP32 && ! defined(bswap32) | |
22 | *************** | |
23 | *** 92,101 **** | |
24 | # define bswap32(x) bswap_32(x) | |
25 | # else | |
26 | # define bswap32(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)) | |
31 | # endif | |
32 | #endif /* ! HAVE_BSWAP32 && ! defined(bswap32) */ | |
33 | ||
34 | --- 92,101 ---- | |
35 | # define bswap32(x) bswap_32(x) | |
36 | # else | |
37 | # define bswap32(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)) | |
42 | # endif | |
43 | #endif /* ! HAVE_BSWAP32 && ! defined(bswap32) */ | |
44 |