bnum 0.11.0

Arbitrary, fixed size numeric types that extend the functionality of primitive numeric types.
Documentation
pub mod big_types {
    macro_rules! big_types_modules {
        ($bits: literal) => {
            pub mod u8 {
                pub type UTEST = crate::BUintD8<{ $bits / 8 }>;
                pub type ITEST = crate::BIntD8<{ $bits / 8 }>;
            }
            pub mod u16 {
                pub type UTEST = crate::BUintD16<{ $bits / 16 }>;
                pub type ITEST = crate::BIntD16<{ $bits / 16 }>;
            }
            pub mod u32 {
                pub type UTEST = crate::BUintD32<{ $bits / 32 }>;
                pub type ITEST = crate::BIntD32<{ $bits / 32 }>;
            }
            pub mod u64 {
                pub type UTEST = crate::BUint<{ $bits / 64 }>;
                pub type ITEST = crate::BInt<{ $bits / 64 }>;
            }
        };
    }

    #[cfg(test_int_bits = "64")]
    big_types_modules!(64);

    #[cfg(not(test_int_bits = "64"))]
    big_types_modules!(128);
}

#[cfg(test_int_bits = "64")]
mod small_types {
    #[allow(non_camel_case_types)]
    pub type utest = u64;

    #[allow(non_camel_case_types)]
    pub type itest = i64;
}

#[cfg(not(test_int_bits = "64"))]
mod small_types {
    #[allow(non_camel_case_types)]
    pub type utest = u128;

    #[allow(non_camel_case_types)]
    pub type itest = i128;
}

pub use core::primitive::*;
pub use small_types::*;

// #[cfg(test_int_bits = "64")]
// #[allow(non_camel_case_types)]
// pub type ftest = f64;

// #[cfg(not(test_int_bits = "64"))]
// #[allow(non_camel_case_types)]
// pub type ftest = f32;

// #[cfg(feature = "nightly")]
// #[cfg(test_int_bits = "64")]
// pub type FTEST = crate::float::Float<8, 52>;

// #[cfg(feature = "nightly")]
// #[cfg(not(test_int_bits = "64"))]
// pub type FTEST = crate::float::Float<4, 23>;