diff options
author | 2005-02-07 20:34:54 +0000 | |
---|---|---|
committer | 2005-02-07 20:34:54 +0000 | |
commit | 5a8f99df0172e44d7b01ac4bdbcf9a76a880daa1 (patch) | |
tree | 7d5c3a6152f6a3d152653ed9099fa117b2f40954 /lib/libssl | |
parent | regen (diff) | |
download | wireguard-openbsd-5a8f99df0172e44d7b01ac4bdbcf9a76a880daa1.tar.xz wireguard-openbsd-5a8f99df0172e44d7b01ac4bdbcf9a76a880daa1.zip |
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/libssl')
-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} |