Skip to content

Commit

Permalink
perf: ATE_LOOP_COUNT hamming weight reduced from 26 to 22 (#852)
Browse files Browse the repository at this point in the history
* perf: ATE_LOOP_COUNT hamming weight reduced from 26 to 22

* style: fix
  • Loading branch information
FatihSolak authored Aug 27, 2024
1 parent 5a1db8a commit b33df5c
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 b33df5c

Please sign in to comment.