CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2023/02/16 04:13:05
Modified files:
lib/libcrypto/arch/amd64: Makefile.inc
lib/libcrypto/bn: bn_local.h
lib/libcrypto/bn/arch/amd64: bn_arch.c bn_arch.h
Log message:
Enable s2n-bignum word_clz() on amd64.
The BN_num_bits_word() function is a hot path, being called more than
80 million times during a libcrypto regress run. The word_clz()
implementation uses five instructions to do the same as the generic code
that uses more than 60 instructions.
Discussed with tb@