diff options
author | jsing <> | 2023-02-17 05:13:34 +0000 |
---|---|---|
committer | jsing <> | 2023-02-17 05:13:34 +0000 |
commit | e251eb23d4d05166e78527447e36f14b8598ca5f (patch) | |
tree | b83e94b45b8911aac35bd66431cc5c5c9cd89015 /src/lib/libc | |
parent | 02f91f3325f965a313f0cffe5053a084d05a84ea (diff) | |
download | openbsd-e251eb23d4d05166e78527447e36f14b8598ca5f.tar.gz openbsd-e251eb23d4d05166e78527447e36f14b8598ca5f.tar.bz2 openbsd-e251eb23d4d05166e78527447e36f14b8598ca5f.zip |
Reimplement bn_sqr_comba{4,8}().
Use bignum primitives rather than the current mess of macros.The sqr_add_c
macro gets replaced with bn_mulw_addtw(), while the sqr_add_c2 macro gets
replaced with bn_mul2_mulw_addtw().
The variables in the comba functions have also been reordered, so that the
patterns are easier to understand - the compiler can take care of
optimising the inputs and outputs to avoid register moves.
ok tb@
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions