From 67fcb4ef3942fb3a0f1e18f8ebbe7464120d485a Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Sun, 2 Aug 2015 21:54:23 +0000 Subject: This commit was manufactured by cvs2git to create branch 'OPENBSD_5_8'. --- src/lib/libcrypto/ppccap.c | 50 ---------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/lib/libcrypto/ppccap.c (limited to 'src/lib/libcrypto/ppccap.c') diff --git a/src/lib/libcrypto/ppccap.c b/src/lib/libcrypto/ppccap.c deleted file mode 100644 index ce01edf6ec..0000000000 --- a/src/lib/libcrypto/ppccap.c +++ /dev/null @@ -1,50 +0,0 @@ -/* $OpenBSD: ppccap.c,v 1.6 2014/07/17 23:48:24 deraadt Exp $ */ - -#include -#include -#include -#include - -#include -#include - -#ifdef unused -#define PPC_FPU64 (1<<0) -#define PPC_ALTIVEC (1<<1) - -static int OPENSSL_ppccap_P = 0; -#endif - -#ifdef OPENSSL_BN_ASM_MONT -extern int bn_mul_mont_int(BN_ULONG *, const BN_ULONG *, const BN_ULONG *, - const BN_ULONG *, const BN_ULONG *, int); -int -bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, - const BN_ULONG *np, const BN_ULONG *n0, int num) -{ - return bn_mul_mont_int(rp, ap, bp, np, n0, num); -} -#endif - -#ifdef unused -void OPENSSL_cpuid_setup(void) __attribute__((constructor)); - -void -OPENSSL_cpuid_setup(void) -{ - static const int mib[2] = { CTL_MACHDEP, CPU_ALTIVEC }; - static int trigger = 0; - int altivec = 0; - size_t size; - - if (trigger) - return; - trigger = 1; - - size = sizeof altivec; - if (sysctl(mib, 2, &altivec, &size, NULL, 0) != -1) { - if (altivec != 0) - OPENSSL_ppccap_P |= PPC_ALTIVEC; - } -} -#endif -- cgit v1.2.3-55-g6feb