bswapl usage should be masked by I386_ONLY.
authorAndy Polyakov <appro@openssl.org>
Mon, 19 Sep 2005 13:06:46 +0000 (13:06 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 19 Sep 2005 13:06:46 +0000 (13:06 +0000)
PR: 1195

crypto/md32_common.h

index f1c48b54da45ffc4f618727c1c01be6e0d1c285d..0812a53b2f5f5fa8561adb3993da6be20f5d21f6 100644 (file)
 
 #ifndef PEDANTIC
 # if defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
-#  if defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__)
+#  if ((defined(__i386) || defined(__i386__)) && && !defined(I386_ONLY)) || \
+      (defined(__x86_64) || defined(__x86_64__))
     /*
      * This gives ~30-40% performance improvement in SHA-256 compiled
      * with gcc [on P4]. Well, first macro to be frank. We can pull