patch for src/sys/sys/endian.h
hi,
while using endian.h to test some code on solaris, i noticed
breakage under SUNWspro cc.
the following diff fixes the swap64gen macro for non-gcc compilers.
-hugh
- endian.h.1.8 Wed Apr 30 20:57:54 2003
+++ endian.h Wed Apr 30 20:58:24 2003
@@ -94,7 +94,7 @@
((u_int32_t)(x) & 0xff000000) >> 24)
#define __swap64gen(x) \
- (u_int64_t)(((u_int64_t)(x) & 0xff) << 56) | \
+ (u_int64_t)((((u_int64_t)(x) & 0xff) << 56) | \
((u_int64_t)(x) & 0xff00) << 40 | \
((u_int64_t)(x) & 0xff0000) << 24 | \
((u_int64_t)(x) & 0xff000000) << 8 | \
Received on Wed Apr 30 22:11:01 2003
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 13:29:56 EDT
|