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 830da87..36beea2 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 5e62d40..e739da2 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"            \