# HG changeset patch # User iive # Date 1140604255 0 # Node ID 915a3791f6c1d6427ba9a6c64c6527e631dbf378 # Parent 018f1478418aa1fd00f9048369b24dad2a73d7bb Use native bswap32 instruction when __CPU__ is x86_64 instead of generic 386 code diff -r 018f1478418a -r 915a3791f6c1 bswap.h --- a/bswap.h Wed Feb 22 00:59:11 2006 +0000 +++ b/bswap.h Wed Feb 22 10:30:55 2006 +0000 @@ -25,7 +25,7 @@ static inline uint32_t ByteSwap32(uint32_t x) { -#if __CPU__ > 386 +#if __CPU__ != 386 __asm("bswap %0": "=r" (x) : #else