summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2023-04-22 14:31:45 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2023-04-22 14:31:45 +0000
commit7ff30f366bf246dd18f5b881c94c389b4702b5a2 (patch)
tree40979d8ff437fc96f7cf25ddfa298a58b7cd0725 /sys
parent3520fb7b0a8ae421f340683dc8d611f27f79bacb (diff)
Improve bn_montgomery_multiply_words()
Pull a number of invariants into variables, which avoids repeated loading from memory on architectures where sufficient registers are available. Also keep track of the per-iteration carry in a variable, rather than unnecessarily reading from and writing to memory. This gives a reasonable performance gain on some architectures (e.g. armv7)
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions