Skip to content

Commit

Permalink
chore: remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOLAND committed Dec 13, 2023
1 parent ef40f30 commit b2e3c04
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 0 additions & 3 deletions src/ntt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 }
}
Expand Down
4 changes: 0 additions & 4 deletions src/polynomial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -115,7 +112,6 @@ impl Polynomial {
let res = Polynomial {
coef: coef[start..=(start + v1_deg + v2_deg)].to_vec(),
};
println!("poly -- {}", res);
res
}

Expand Down

0 comments on commit b2e3c04

Please sign in to comment.