summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-02-16Enable s2n-bignum word_clz() on amd64.jsing4-4/+17
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@
2023-02-16Use bn_addw() in bn_mulw(), rather than duplicating add with carry code.jsing1-12/+7
2023-02-16Change include from _internal_s2n_bignum.h to s2n_bignum_internal.h.jsing1-1/+1
2023-02-16Include the ISC license from s2n-bignum's LICENSE file.jsing1-1/+12