Don't use inline assembler on x86 Solaris (would need a different syntax).
authorUlf Möller <ulf@openssl.org>
Wed, 8 Dec 1999 22:55:06 +0000 (22:55 +0000)
committerUlf Möller <ulf@openssl.org>
Wed, 8 Dec 1999 22:55:06 +0000 (22:55 +0000)
crypto/bn/bn_div.c
crypto/md32_common.h

index 830da87f58e047f7156a0b2aacd2195bb3495480..36beea2296b822901cb27f47380704daa444eb9a 100644 (file)
@@ -207,7 +207,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
 
 #if !defined(NO_ASM) && !defined(PEDANTIC)
 # if defined(__GNUC__) && __GNUC__>=2
-#  if defined(__i386)
+#  if defined(__i386) && !defined(__sun)
    /*
     * There were two reasons for implementing this template:
     * - GNU C generates a call to a function (__udivdi3 to be exact)
index 5e62d405232a8bf12499e00c652f24bdde9e3657..e739da21217abff9f1bbec478790a8a0e6e4f9b2 100644 (file)
    *
    *                                   <appro@fy.chalmers.se>
    */
-#  if defined(__i386)
+#  if defined(__i386) && !defined(__sun)
 #   define ROTATE(a,n) ({ register unsigned int ret;   \
                                asm volatile (          \
                                "roll %1,%0"            \