machine_factor/lib.rs
1#![no_std]
2
3//! Machine-factor is a relatively fast library for factoring integers up to 2^128. Most integers can be factored in less than
4//! 60 seconds (on i5-5300U). Machine-factor can be used in const contexts, however this is will often exceed the allowed time.
5
6mod mfactor;
7mod wfactor;
8
9pub use mfactor::{factorize, get_factor, Factorization};
10
11pub use wfactor::{factorize_128, get_factor_128, Factorization128};
12#[cfg(feature = "internal")]
13pub use {
14 mfactor::{drbg, partial_gcd},
15 wfactor::partial_gcd_128,
16};
17/*
18#[panic_handler]
19fn panic(_info: &core::panic::PanicInfo) -> ! {
20 loop {}
21}
22*/