1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! ⚠️ Collection of bignum algorithms.
//!
//! **Warning.** Most functions in this module are currently not considered part
//! of the stable API and may be changed or removed in future minor releases.

mod div;
mod gcd;
mod mul;
mod mul_redc;

pub use self::{
    div::div_rem,
    gcd::{gcd, gcd_extended, inv_mod, LehmerMatrix},
    mul::{mul, mul_inline},
    mul_redc::mul_redc,
};

#[cfg(feature = "bench")]
#[doc(hidden)]
pub mod bench {
    use super::*;
    use criterion::Criterion;

    pub fn group(criterion: &mut Criterion) {
        gcd::bench::group(criterion);
    }
}