Macaulay2 Engine
Loading...
Searching...
No Matches

◆ modulus_add()

int CoefficientRingZZp::modulus_add ( int a,
int b,
int p )
inlinestaticprivate

Definition at line 75 of file coeffrings.hpp.

76 {
77 int t = a + b;
78 return (t < p ? t : t - p);
79 }

References p.

Referenced by add(), mult(), negate(), subtract(), and subtract_multiple().