diff options
Diffstat (limited to 'src/field_gmp_impl.h')
-rw-r--r-- | src/field_gmp_impl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/field_gmp_impl.h b/src/field_gmp_impl.h index 8af7dd68f8..73a55c4f00 100644 --- a/src/field_gmp_impl.h +++ b/src/field_gmp_impl.h @@ -46,6 +46,10 @@ static void secp256k1_fe_normalize(secp256k1_fe_t *r) { mpn_sub(r->n, r->n, FIELD_LIMBS, secp256k1_field_p, FIELD_LIMBS); } +static void secp256k1_fe_normalize_var(secp256k1_fe_t *r) { + secp256k1_fe_normalize(r); +} + SECP256K1_INLINE static void secp256k1_fe_set_int(secp256k1_fe_t *r, int a) { r->n[0] = a; for (int i=1; i<FIELD_LIMBS+1; i++) |