FLINT3.7.0-dev

NMOD_DIVREM2_BOUNDED

Synopsis#include <flint/nmod.h>
NMOD_DIVREM2_BOUNDED(q, r, a_hi, a_lo, mod)source

Sets q and r to the quotient and the remainder of ahiB+aloa_{hi} B + a_{lo} by nn, under the same conditions as NMOD_RED2_BOUNDED. The quotient is less than 2FLINT_BITS−12^{\mathtt{FLINT\_BITS} - 1}, and the correction is branch-free.

Cite this page

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