diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2005-02-07 20:34:55 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2005-02-07 20:34:55 +0000 |
commit | 79a3139d477bfc003f1f9dec2be28dfa3f6bca89 (patch) | |
tree | b6834e334f44cc20ba9565e5dd532faf26a38191 /lib | |
parent | 7ac56aa9efd515bdc8509e51c797b55b8b8799ca (diff) |
For amd64, build the bn routines in libcrypto with the amd64 specific
x86_64-gcc.c replacement for the generic bn_asm.c. Seems to give a
two to threefold speedup for rsa on amd64.
ok millert@, hshoexer@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/crypto/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libssl/crypto/Makefile b/lib/libssl/crypto/Makefile index 9baf729b5b9..b1bda36b186 100644 --- a/lib/libssl/crypto/Makefile +++ b/lib/libssl/crypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.36 2004/02/27 17:36:13 deraadt Exp $ +# $OpenBSD: Makefile,v 1.37 2005/02/07 20:34:54 beck Exp $ LIB= crypto @@ -143,7 +143,8 @@ SRCS+= ec_err.c ec_mult.c ecp_nist.c ecp_smpl.c ${LCRYPTO_SRC}/comp ${LCRYPTO_SRC}/txt_db ${LCRYPTO_SRC}/md4 \ ${LCRYPTO_SRC}/engine ${LCRYPTO_SRC}/dso ${LCRYPTO_SRC}/ui \ ${LCRYPTO_SRC}/ocsp ${LCRYPTO_SRC}/ec ${LCRYPTO_SRC}/aes ${LCRYPTO_SRC} \ - ${LCRYPTO_SRC}/acss ${.CURDIR}/arch/${MACHINE_ARCH} + ${LCRYPTO_SRC}/acss ${.CURDIR}/arch/${MACHINE_ARCH} \ + ${LCRYPTO_SRC}/bn/asm HDRS=\ crypto/acss/acss.h \ @@ -283,11 +284,17 @@ SRCS+= bf_enc.c SRCS+= bn_asm_vax.S SRCS+= rc4_enc.c .else +.if (${MACHINE_ARCH} == "amd64") +SRCS+= bf_enc.c +SRCS+= x86_64-gcc.c +SRCS+= rc4_enc.c +.else SRCS+= bf_enc.c SRCS+= bn_asm.c SRCS+= rc4_enc.c .endif .endif +.endif all beforedepend: ${GENERATED} |