Return an error if no recipient type matches.
[openssl.git] / crypto / ppccap.c
index d7f6354e9468c019eaa8b8a4bee67a22ba67e3d9..d78bfbcdbb88265e1906ba03fa1b92280dcc9f34 100644 (file)
@@ -13,7 +13,7 @@
 #define PPC_FPU64      (1<<0)
 #define PPC_ALTIVEC    (1<<1)
 
-static int OPENSSL_ppccap_P = 0;
+unsigned int OPENSSL_ppccap_P = 0;
 
 static sigset_t all_masked;
 
@@ -25,7 +25,7 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_U
 
        if (sizeof(size_t)==4)
                {
-#if (defined(__APPLE__) && defined(__MACH__))
+#if 1 || (defined(__APPLE__) && defined(__MACH__))
                if (num>=8 && (num&3)==0 && (OPENSSL_ppccap_P&PPC_FPU64))
                        return bn_mul_mont_fpu64(rp,ap,bp,np,n0,num);
 #else
@@ -94,7 +94,7 @@ void OPENSSL_cpuid_setup(void)
 # if defined(_SC_AIX_KERNEL_BITMODE)
                if (sysconf(_SC_AIX_KERNEL_BITMODE)!=64)        return;
 # endif
-               if (uname(&uts)!=0 || atoi(uts.version)<6))     return;
+               if (uname(&uts)!=0 || atoi(uts.version)<6)      return;
                }
 #endif