You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add native num.h implementation with 32- and 64-bit variants
This num.h implementation works using fixed-size arrays large enough
to hold a 256-bit number (plus one word for slop). It includes a
modular inversion. Typical perf numbers on my 64-bit system are:
scalar_inverse:
constant time: min 13.4us / avg 13.5us / max 13.8us
native num.h: min 5.18us / avg 5.21us / max 5.43us
gmp num.h: min 2.65us / avg 2.68us / max 2.70us
field_inverse:
constant time: min 6.02us / avg 6.09us / max 6.15us
native num.h: min 5.48us / avg 5.58us / max 5.68us
gmp num.h: min 2.96us / avg 3.02us / max 3.09us
0 commit comments