Skip to content

Commit b33df5c

Browse files
authored
perf: ATE_LOOP_COUNT hamming weight reduced from 26 to 22 (#852)
* perf: ATE_LOOP_COUNT hamming weight reduced from 26 to 22 * style: fix
1 parent 5a1db8a commit b33df5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

curves/bn254/src/curves/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ impl BnConfig for Config {
1919
/// `x` is positive.
2020
const X_IS_NEGATIVE: bool = false;
2121
const ATE_LOOP_COUNT: &'static [i8] = &[
22-
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,
23-
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,
24-
-1, 0, 0, 1, 0, 1, 1,
22+
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,
23+
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,
24+
-1, 0, 0, 0, 1, 0, 1, 1,
2525
];
2626

2727
const TWIST_MUL_BY_Q_X: Fq2 = Fq2::new(

0 commit comments

Comments
 (0)