changeset 17664:915a3791f6c1

Use native bswap32 instruction when __CPU__ is x86_64 instead of generic 386 code
author iive
date Wed, 22 Feb 2006 10:30:55 +0000
parents 018f1478418a
children 9d7611d3227c
files bswap.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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