pub fn field_neg<const LIMBS: usize>(
a: &FieldElement<LIMBS>,
p: &[u64; LIMBS],
) -> FieldElement<LIMBS>Expand description
Negate: result = (-a) mod p = p - a if a != 0, else 0.
pub fn field_neg<const LIMBS: usize>(
a: &FieldElement<LIMBS>,
p: &[u64; LIMBS],
) -> FieldElement<LIMBS>Negate: result = (-a) mod p = p - a if a != 0, else 0.