Since `bswap' is a i486 invention, I suggest the following patch to
make the code work on i386 ( at least the tests run ok ):
--- crypto/modes/modes_lcl.h.orig 2012-01-15 14:40:21.000000000
+0100 +++ crypto/modes/modes_lcl.h 2012-03-29 16:27:59.000000000
+0200 @@ -45,7 +45,7 @@
# 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)); \
cheers
horst wente
PS:
being a bit nostalgic, the i386 still handles my telephone line ...
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]