Skip to content

Commit

Permalink
Update mpint_field.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
maths644311798 authored Dec 15, 2023
1 parent 2b7d888 commit b6a521a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion yacl/math/galois_field/mpint_field/mpint_field.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ void MPIntField::NegInplace(MPInt *x) const {
WEAK_ENFORCE(IsInField(*x), "x is not a valid field element, x={}", *x);
x->NegateInplace();
AddInplace(x, mod_);
x->DecrOne();
}

MPInt MPIntField::Inv(const MPInt &x) const { return x.InvertMod(mod_); }
Expand Down

0 comments on commit b6a521a

Please sign in to comment.