]> git.bitcoin.ninja Git - dnssec-prover/commit
Skip squaring implementations when `slower_smaller_binary` is set
authorMatt Corallo <git@bluematt.me>
Thu, 1 Aug 2024 21:33:37 +0000 (21:33 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 1 Aug 2024 22:16:06 +0000 (22:16 +0000)
commitc58ffe4684b743e9ae94cc0fe0b426c3e9f85507
tree09ef41c247cb8be95b6cfe6c137b3fefba5776f3
parentb7c1896f4d6a49bb3b30f589e511642c74066301
Skip squaring implementations when `slower_smaller_binary` is set

...instead just using the normal multiplication code.

This is less than a 5% reduction in performance and reduces code
size for the crypto module from 30.8KiB to 27.4KiB.
src/crypto/bigint.rs