Skip to content

Commit

Permalink
Slight simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Aug 15, 2023
1 parent 8c196d3 commit 5751f0f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/fp/relic_fp_smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ static dis_t jumpdivstep(dis_t m[4], dig_t *k, dis_t delta,
for (s -= 2; s >= 0; s -= 2) {
yi = y;

c0 = ~(delta >> (RLC_DIG - 1));
d0 = (delta >= 0);
c1 = -(x & 1);
c0 &= c1;
c0 = (-d0) & c1;

d0 = (delta >= 0);
t0 = (y ^ -d0) + d0;
t1 = (ci ^ -d0) + d0;
t2 = (di ^ -d0) + d0;
Expand All @@ -92,11 +91,10 @@ static dis_t jumpdivstep(dis_t m[4], dig_t *k, dis_t delta,

yi = y;

c0 = ~(delta >> (RLC_DIG - 1));
d0 = (delta >= 0);
c1 = -(x & 1);
c0 &= c1;
c0 = (-d0) & c1;

d0 = (delta >= 0);
t0 = (y ^ -d0) + d0;
t1 = (ci ^ -d0) + d0;
t2 = (di ^ -d0) + d0;
Expand Down

0 comments on commit 5751f0f

Please sign in to comment.