Skip to content

Commit

Permalink
perf: ATE_LOOP_COUNT hamming weight reduced from 26 to 22
Browse files Browse the repository at this point in the history
  • Loading branch information
FatihSolak committed Aug 23, 2024
1 parent 273bf21 commit 2498baa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions curves/bn254/src/curves/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ impl BnConfig for Config {
/// `x` is positive.
const X_IS_NEGATIVE: bool = false;
const ATE_LOOP_COUNT: &'static [i8] = &[
0, 0, 0, 1, 0, 1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 0, 1, 1, 0, -1, 0, 0, 1, 0, -1, 0, 0, 0,
0, 1, 1, 1, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 1, 1, 0,
-1, 0, 0, 1, 0, 1, 1,
0, 0, 0, 1, 0, 1, 0, -1, 0, 0, -1, 0, 0, 0, 1, 0, 0, -1, 0, -1, 0, 0, 0, 1, 0, -1, 0, 0, 0,
0, -1, 0, 0, 1, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0, 1, 0, -1, 0, 0, 0, -1, 0, -1,
0, 0, 0, 1, 0, 1, 1,
];

const TWIST_MUL_BY_Q_X: Fq2 = Fq2::new(
Expand Down

0 comments on commit 2498baa

Please sign in to comment.