ppccap.c (238405) | ppccap.c (246772) |
---|---|
1#include <stdio.h> 2#include <stdlib.h> 3#include <string.h> 4#include <setjmp.h> 5#include <signal.h> | 1#include <stdio.h> 2#include <stdlib.h> 3#include <string.h> 4#include <setjmp.h> 5#include <signal.h> |
6#include <unistd.h> |
|
6#include <crypto.h> 7#include <openssl/bn.h> 8 9#define PPC_FPU64 (1<<0) 10#define PPC_ALTIVEC (1<<1) 11 12static int OPENSSL_ppccap_P = 0; 13 --- 34 unchanged lines hidden (view full) --- 48 return bn_mul_mont_int(rp,ap,bp,np,n0,num); 49 } 50#endif 51 52static sigjmp_buf ill_jmp; 53static void ill_handler (int sig) { siglongjmp(ill_jmp,sig); } 54 55void OPENSSL_ppc64_probe(void); | 7#include <crypto.h> 8#include <openssl/bn.h> 9 10#define PPC_FPU64 (1<<0) 11#define PPC_ALTIVEC (1<<1) 12 13static int OPENSSL_ppccap_P = 0; 14 --- 34 unchanged lines hidden (view full) --- 49 return bn_mul_mont_int(rp,ap,bp,np,n0,num); 50 } 51#endif 52 53static sigjmp_buf ill_jmp; 54static void ill_handler (int sig) { siglongjmp(ill_jmp,sig); } 55 56void OPENSSL_ppc64_probe(void); |
57void OPENSSL_altivec_probe(void); |
|
56 57void OPENSSL_cpuid_setup(void) 58 { 59 char *e; 60 struct sigaction ill_oact,ill_act; 61 sigset_t oset; 62 static int trigger=0; 63 --- 13 unchanged lines hidden (view full) --- 77 if ((e=getenv("OPENSSL_ppccap"))) 78 { 79 OPENSSL_ppccap_P=strtoul(e,NULL,0); 80 return; 81 } 82 83 OPENSSL_ppccap_P = 0; 84 | 58 59void OPENSSL_cpuid_setup(void) 60 { 61 char *e; 62 struct sigaction ill_oact,ill_act; 63 sigset_t oset; 64 static int trigger=0; 65 --- 13 unchanged lines hidden (view full) --- 79 if ((e=getenv("OPENSSL_ppccap"))) 80 { 81 OPENSSL_ppccap_P=strtoul(e,NULL,0); 82 return; 83 } 84 85 OPENSSL_ppccap_P = 0; 86 |
87#if defined(_AIX) 88 if (sizeof(size_t)==4 89# if defined(_SC_AIX_KERNEL_BITMODE) 90 && sysconf(_SC_AIX_KERNEL_BITMODE)!=64 91# endif 92 ) 93 return; 94#endif 95 |
|
85 memset(&ill_act,0,sizeof(ill_act)); 86 ill_act.sa_handler = ill_handler; 87 ill_act.sa_mask = all_masked; 88 89 sigprocmask(SIG_SETMASK,&ill_act.sa_mask,&oset); 90 sigaction(SIGILL,&ill_act,&ill_oact); 91 92 if (sizeof(size_t)==4) --- 23 unchanged lines hidden --- | 96 memset(&ill_act,0,sizeof(ill_act)); 97 ill_act.sa_handler = ill_handler; 98 ill_act.sa_mask = all_masked; 99 100 sigprocmask(SIG_SETMASK,&ill_act.sa_mask,&oset); 101 sigaction(SIGILL,&ill_act,&ill_oact); 102 103 if (sizeof(size_t)==4) --- 23 unchanged lines hidden --- |