modes_lcl.h: make it work on i386.
authorAndy Polyakov <appro@openssl.org>
Sat, 31 Mar 2012 17:02:46 +0000 (17:02 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 31 Mar 2012 17:02:46 +0000 (17:02 +0000)
PR: 2780

crypto/modes/modes_lcl.h

index 7a82a98..b6dc3c3 100644 (file)
@@ -45,7 +45,7 @@ typedef unsigned char u8;
 #  define BSWAP4(x) ({ u32 ret=(x);                    \
                        asm ("bswapl %0"                \
                        : "+r"(ret));   ret;            })
 #  define BSWAP4(x) ({ u32 ret=(x);                    \
                        asm ("bswapl %0"                \
                        : "+r"(ret));   ret;            })
-# elif (defined(__i386) || defined(__i386__))
+# elif (defined(__i386) || defined(__i386__)) && !defined(I386_ONLY)
 #  define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x);     \
                        asm ("bswapl %0; bswapl %1"     \
                        : "+r"(hi),"+r"(lo));           \
 #  define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x);     \
                        asm ("bswapl %0; bswapl %1"     \
                        : "+r"(hi),"+r"(lo));           \