ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/sysdeps.h
(Generate patch)

Comparing SheepShaver/src/Unix/sysdeps.h (file contents):
Revision 1.22 by gbeauche, 2004-01-18T22:05:28Z vs.
Revision 1.23 by gbeauche, 2004-01-26T13:52:31Z

# Line 139 | Line 139 | typedef int64 intptr;
139   **/
140  
141   #if defined(__GNUC__)
142 < #if defined(__x86_64__)
142 > #if defined(__x86_64__) || defined(__i386__)
143   // Linux/AMD64 currently has no asm optimized bswap_32() in <byteswap.h>
144   #define opt_bswap_32 do_opt_bswap_32
145   static inline uint32 do_opt_bswap_32(uint32 x)
# Line 184 | Line 184 | static inline uint32 generic_bswap_32(ui
184                    ((x & 0x000000ff) << 24) );
185   }
186  
187 + #if defined(__i386__)
188 + #define opt_bswap_64 do_opt_bswap_64
189 + static inline uint64 do_opt_bswap_64(uint64 x)
190 + {
191 +  return (bswap_32(x >> 32) | (((uint64)bswap_32((uint32)x)) << 32));
192 + }
193 + #endif
194 +
195   #ifdef  opt_bswap_64
196   #undef  bswap_64
197   #define bswap_64 opt_bswap_64

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines