From b33df5cce2d54cf4c9248e4b229c7d6708fa9375 Mon Sep 17 00:00:00 2001 From: FatihSolak <75953918+FatihSolak@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:55:27 +0300 Subject: [PATCH] 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 --- curves/bn254/src/curves/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curves/bn254/src/curves/mod.rs b/curves/bn254/src/curves/mod.rs index 349488786..68e15233b 100644 --- a/curves/bn254/src/curves/mod.rs +++ b/curves/bn254/src/curves/mod.rs @@ -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(