uint
uint copied to clipboard
`modular`: Increase cases when perf is better.
On 2022-06-03 @recmo wrote in 2f6a5d6
“Merge pull request #103 from recmo/mulmod”:
Increase cases when perf is better.
#[test]
fn test_pow_rules() {
const_for!(BITS in NON_ZERO {
const LIMBS: usize = nlimbs(BITS);
type U = Uint<BITS, LIMBS>;
// TODO: Increase cases when perf is better.
let mut config = Config::default();
config.cases = min(config.cases, if BITS > 500 { 3 } else { 10 });
proptest!(config, |(a: U, b: U, c: U, m: U)| {
// TODO: a^(b+c) = a^b * a^c. Which requires carmichael fn.
// TODO: (a^b)^c = a^(b * c). Which requires carmichael fn.
From src/modular.rs:177