NMOD_RED
Synopsis
#include <flint/nmod.h>NMOD_RED(r, a, mod)sourceSets r to for any word and any . It uses one high and one low product (none if has FLINT_BITS bits), with a constant derived from mod.ninv (Barrett reduction with an nmod_t), and is cheaper than reducing as a two-word number with NMOD_RED2.
Cite this page
The FLINT team, “NMOD_RED (nmod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod/NMOD_RED.html (generated 2026-11-02).
@misc{flint-doc-nmod-NMOD-RED,
author = {{The FLINT team}},
title = {{NMOD\_RED (nmod.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod/NMOD_RED.html},
note = {Generated 2026-11-02}
}