uint icon indicating copy to clipboard operation
uint copied to clipboard

`modular`: Increase cases when perf is better.

Open github-actions[bot] opened this issue 2 years ago • 0 comments

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

github-actions[bot] avatar Jun 03 '22 23:06 github-actions[bot]