]> granicus.if.org Git - openssl/commitdiff
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 7a82a981ca4f93e460cbeb3a8f5bb42db14bc737..b6dc3c336fe09c0c627bc431e7e7089227ebf7d5 100644 (file)
@@ -45,7 +45,7 @@ typedef unsigned char u8;
 #  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));           \