powmod: fix Montgomery branch calling Barrett implementation

This commit is contained in:
mlgudi
2026-03-15 02:46:30 +00:00
parent e40fdb8a31
commit 84b38810f1

View File

@@ -101,7 +101,7 @@ internal_int_power_modulo :: proc(res, G, X, P: ^Int, allocator := context.alloc
If the modulus is odd or dr != 0 use the montgomery method.
*/
if internal_int_is_odd(P) || dr != 0 {
return _private_int_exponent_mod(res, G, X, P, dr)
return _private_int_exponent_mod_fast(res, G, X, P, dr)
}
/*