from_montgomery()'s performance depends on whether we use mulmod_montgomery(x, 1) or mulmod_montgomery(1, x) - the former works faster with MLUInt{3, UInt32}, and the latter with MLUInt{2, UInt64}. Need to run tests on different combinations, determine the pattern, and make several implementations.
from_montgomery()
's performance depends on whether we usemulmod_montgomery(x, 1)
ormulmod_montgomery(1, x)
- the former works faster withMLUInt{3, UInt32}
, and the latter withMLUInt{2, UInt64}
. Need to run tests on different combinations, determine the pattern, and make several implementations.