From a95e6b1822016003d62366c843e85bdbbb908606 Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Thu, 28 Sep 2023 12:21:39 -0300 Subject: [PATCH] precomp: tune tests Signed-off-by: Ignacio Hagopian --- src/msm/precomp.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msm/precomp.zig b/src/msm/precomp.zig index e684438..8fd09aa 100644 --- a/src/msm/precomp.zig +++ b/src/msm/precomp.zig @@ -145,7 +145,8 @@ test "correctness" { scalars[i] = Fr.fromInteger((i + 0x93434) *% 0x424242); } - for (1..crs.DomainSize + 1) |msm_length| { + var msm_length: usize = 0; + while (msm_length <= crs.DomainSize) : (msm_length += 32) { const msm_scalars = scalars[0..msm_length]; var full_scalars: [crs.DomainSize]Fr = undefined;