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

◆ modulus_add()

int M2::ARingGFM2::modulus_add ( int a,
int b,
int p )
inlinestaticprivate

Arithmetic functions ///////.

Definition at line 154 of file aring-m2-gf.hpp.

155 {
156 int t = a + b;
157 return (t <= p ? t : t - p);
158 }
int p

References p.

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