diff --git a/src/low/x64-asm-6l/relic_bn_mul_low.c b/src/low/x64-asm-6l/relic_bn_mul_low.c index 61c95211d..c43f15da2 100644 --- a/src/low/x64-asm-6l/relic_bn_mul_low.c +++ b/src/low/x64-asm-6l/relic_bn_mul_low.c @@ -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; } \ No newline at end of file