FLINT3.7.0-dev

flint_mpn_mulmod_want_precond

Synopsis#include <flint/mpn_extras.h>
int flint_mpn_mulmod_want_precond(mp_size_t n, slong num, ulong norm)source

Given a modulus of n limbs and shift norm, returns the best method for num multiplications by a fixed operand, accounting for the cost of the precomputation: MPN_MULMOD_PRECOND_NONE (use flint_mpn_mulmod_preinvn), MPN_MULMOD_PRECOND_SHOUP (use flint_mpn_mulmod_precond_shoup) or MPN_MULMOD_PRECOND_MATRIX (use flint_mpn_mulmod_precond_matrix).

Cite this page

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