Skip to content

Commit

Permalink
Fix bug in LSB extraction.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Aug 4, 2022
1 parent 97efdbc commit 497dd79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ def Mod2(a_0, a, k, kappa, signed):
t = [program.curr_block.new_reg('s') for i in range(6)]
c2k1 = program.curr_block.new_reg('c')
PRandM(r_dprime, r_prime, [r_0], k, 1, kappa)
r_0 = r_prime
mulsi(t[0], r_dprime, 2)
if signed:
ld2i(c2k1, k - 1)
Expand Down

0 comments on commit 497dd79

Please sign in to comment.