From b2e3c041cce6fc5fd0360a7b5f8143a3bafbc16c Mon Sep 17 00:00:00 2001 From: bhargav Date: Tue, 12 Dec 2023 16:11:45 -0800 Subject: [PATCH] chore: remove debug statements --- README.md | 2 +- src/ntt.rs | 3 --- src/polynomial.rs | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index e86c4a1..d6ced99 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Generate benchmarks using: ```bash # If you don't have it already -cargo install cargo-criterion criterion-table --cfg +cargo install cargo-criterion criterion-table -- --cfg cargo criterion --message-format=json --features parallel | criterion-table > BENCHMARKS.md ``` diff --git a/src/ntt.rs b/src/ntt.rs index 915e512..bfee747 100644 --- a/src/ntt.rs +++ b/src/ntt.rs @@ -51,11 +51,9 @@ pub fn working_modulus(n: BigInt, M: BigInt) -> Constants { if N >= ONE { N = N * n + 1; while !is_prime(N) { - println!("N -- {}", N); N += n; } } - println!("{} is prime", N); let totient = N - ONE; assert!(N >= M); let mut gen = BigInt::from(0); @@ -68,7 +66,6 @@ pub fn working_modulus(n: BigInt, M: BigInt) -> Constants { g += ONE; } assert!(gen > 0); - println!("g/gen -- {} {}", g, gen); let w = gen.mod_exp(totient / n, N); Constants { N, w } } diff --git a/src/polynomial.rs b/src/polynomial.rs index 1119406..4c22ce9 100644 --- a/src/polynomial.rs +++ b/src/polynomial.rs @@ -89,9 +89,6 @@ impl Polynomial { let n = (self.len() + rhs.len()).next_power_of_two(); let ZERO = BigInt::from(0); - println!("rhs -- {}", self); - println!("lhs -- {}", rhs); - let v1 = vec![ZERO; n - self.len()] .into_iter() .chain(self.coef.into_iter()) @@ -115,7 +112,6 @@ impl Polynomial { let res = Polynomial { coef: coef[start..=(start + v1_deg + v2_deg)].to_vec(), }; - println!("poly -- {}", res); res }