Move bn_{mul,sqr}_comba{4,8}() from bn_asm.c to bn_mul.c/bn_sqr.c.
authorjsing <jsing@openbsd.org>
Fri, 20 Jan 2023 17:31:52 +0000 (17:31 +0000)
committerjsing <jsing@openbsd.org>
Fri, 20 Jan 2023 17:31:52 +0000 (17:31 +0000)
commitde344ea370015cfda28b02202602ff50c83346dc
treede39d4abed907c6ebf05ab057752ce96afeb479b
parentdb084caf16e7aedcc4b985a49f0da100cc6eb72e
Move bn_{mul,sqr}_comba{4,8}() from bn_asm.c to bn_mul.c/bn_sqr.c.

Wrap these in HAVE_BN_{MUL,SQR}_COMBA{4,8} defines. Add these defines to
bn_arch.h where the architecture currently provides its own version.

ok tb@
lib/libcrypto/bn/arch/amd64/bn_arch.h
lib/libcrypto/bn/arch/i386/bn_arch.h
lib/libcrypto/bn/arch/mips64/bn_arch.h
lib/libcrypto/bn/arch/powerpc/bn_arch.h
lib/libcrypto/bn/arch/sparc/bn_arch.h
lib/libcrypto/bn/bn_asm.c
lib/libcrypto/bn/bn_mul.c
lib/libcrypto/bn/bn_sqr.c