Skip to content

Commit

Permalink
Reverting, did not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Aug 8, 2024
1 parent a4c6f47 commit 43820e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bn/relic_bn_smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int bn_smb_jac(const bn_t a, const bn_t b) {
n = (n - d) >> 1;
t ^= d ^ (d >> 1);
} else {
z = __builtin_ctz(n);
z = arch_tzcnt(n);
t ^= (d ^ (d >> 1)) & (z << 1);
n >>= z;
}
Expand All @@ -135,7 +135,7 @@ int bn_smb_jac(const bn_t a, const bn_t b) {
break;
}

z = RLC_MIN(__builtin_clz(t0->dp[i - 1]), __builtin_clz(t1->dp[i - 1]));
z = RLC_MIN(arch_lzcnt(t0->dp[i - 1]), arch_lzcnt(t1->dp[i - 1]));
n = t0->dp[i - 1] << z;
d = t1->dp[i - 1] << z;
if (z > (RLC_DIG >> 1)) {
Expand Down

0 comments on commit 43820e8

Please sign in to comment.