FLINT3.7.0-dev

n_divrem2_precomp

Synopsis#include <flint/ulong_extras.h>
ulong n_divrem2_precomp(ulong * q, ulong a, ulong n, double npre)source

Returns a \bmod n and sets *q to the quotient. No restrictions on a or n.

Cite this page

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