Provide and use various quad word primitives.
authorjsing <jsing@openbsd.org>
Mon, 12 Jun 2023 16:17:24 +0000 (16:17 +0000)
committerjsing <jsing@openbsd.org>
Mon, 12 Jun 2023 16:17:24 +0000 (16:17 +0000)
commit73e8eea7ecd835890990a264d0b2289a826d2cc6
tree45026f29a044b94706822e53e9413a9f1b0ed2db
parentaf6f8e1c3b00fdf1c2b5a91b227753de64ac62e4
Provide and use various quad word primitives.

This includes bn_qwaddqw(), bn_qwsubqw(), bn_qwmulw_addw() and
bn_qwmulw_addqw_addw(). These can typically be optimised on architectures
that have a reasonable number of general purpose registers.

ok tb@
lib/libcrypto/bn/bn_add.c
lib/libcrypto/bn/bn_internal.h
lib/libcrypto/bn/bn_mul.c