FLINT3.7.0-dev

nmod_addmul, nmod_fmma

Synopsis#include <flint/nmod.h>
ulong nmod_addmul(ulong s, ulong a, ulong b, nmod_t mod)source
ulong nmod_fmma(ulong a, ulong b, ulong c, ulong d, nmod_t mod)source

Return s + ab and ab + cd modulo n, for reduced operands. nmod_addmul forms s + ab as a two-word integer and reduces it once.

Guides#

Cite this page

The FLINT team, “nmod_addmul, nmod_fmma (nmod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod/nmod_addmul.html (generated 2026-10-20).