Definition at line 258 of file aring-m2-gf.hpp.
259 {
260 if (a == 0)
262 else if (b == 0)
264 else
265 {
266 int n = a - b;
267 if (n > 0)
268 {
269 if (n ==
mGF.minusOne())
271 else
273 }
274 else if (n < 0)
275 {
276 if (-n ==
mGF.minusOne())
278 else
280 }
281 else
282 {
283 if (
mGF.characteristic() == 2)
285 else
288 }
289 }
290 }
static int modulus_add(int a, int b, int p)
Arithmetic functions ///////.
VALGRIND_MAKE_MEM_DEFINED & result(result)
References mGF, modulus_add(), and result().
Referenced by fromSmallIntegerCoefficients(), and subtract().