Skip to content

Commit

Permalink
Remove duplicate code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed May 8, 2024
1 parent a4acd46 commit a0472df
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/low/x64-asm-6l/relic_bn_mul_low.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,4 @@ void bn_muld_low(dig_t *c, const dig_t *a, size_t sa, const dig_t *b, size_t sb,
(void)low;
(void)high;
mpn_mul(c, a, sa, b, sb);
}

dig_t bn_negs_low(dig_t *c, const dig_t *a, dig_t sa, size_t size) {
dig_t carry = sa & 1;

sa = -sa;
for (size_t i = 0; i < size; i++) {
c[i] = (a[i] ^ sa) + carry;
carry = (c[i] < carry);
}
return carry;
}

0 comments on commit a0472df

Please sign in to comment.