diff options
author | Daniel Schadt <kingdread@gmx.de> | 2025-04-10 13:38:36 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2025-04-10 18:22:46 +0200 |
commit | 2d2525f28aadcb149e085dbcc5fa421109457c54 (patch) | |
tree | ad7b67d0b78f2bb33cb6f4957b036158ab84c662 /Cargo.toml | |
parent | a259cff1894c546647f0b975e2d061327a92f879 (diff) | |
download | zears-2d2525f28aadcb149e085dbcc5fa421109457c54.tar.gz zears-2d2525f28aadcb149e085dbcc5fa421109457c54.tar.bz2 zears-2d2525f28aadcb149e085dbcc5fa421109457c54.zip |
unroll Block::mul
We only ever use this function for small factors, either 2 (in
Block::exp), or 0-7 (in e, after the modulo 8). Therefore, for those
small values, we hard-code how they are computed by manually unrolling
the loop/recursion.
This gives around 30% more throughput.
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions