Skip to content

Commit

Permalink
Reduce number of rounds in PreMulC.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Apr 7, 2024
1 parent 1400356 commit a4dc40d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def BitLTC1(u, a, b, kappa):
pre_input.reverse()
if use_inv:
if instructions_base.get_global_vector_size() == 1:
PreMulC_with_inverses_and_vectors(p, pre_input)
PreMulC_with_inverses(p, pre_input)
else:
if do_precomp:
PreMulC_with_inverses(p, pre_input)
Expand Down Expand Up @@ -542,6 +542,7 @@ def PreMulC_with_inverses(p, a):
w[1][0] = r[0][0]
for i in range(k):
muls(t[0][i], w[1][i], a[i])
for i in range(k):
asm_open(True, m[i], t[0][i])
PreMulC_end(p, a, c, m, z)

Expand Down

0 comments on commit a4dc40d

Please sign in to comment.