MPN_MOD_MIN_LIMBS, MPN_MOD_MAX_LIMBS
Synopsis
#include <flint/mpn_mod.h>Single-limb moduli are excluded because nmod already handles them well, and excluding them removes special cases from the code. The upper limit keeps elements and temporary buffers (a small multiple of \ell limbs) small enough to allocate on the stack and keeps operations such as swaps cheap compared with a pointer to heap memory; the tuning tables also only cover this range. For larger moduli, use fmpz_mod (or gr_ctx_init_fmpz_mod). The upper limit might be increased in the future.
Guides#
Cite this page
The FLINT team, “MPN_MOD_MIN_LIMBS, MPN_MOD_MAX_LIMBS (mpn_mod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpn_mod/MPN_MOD_MIN_LIMBS.html (generated 2026-10-20).
@misc{flint-doc-mpn-mod-MPN-MOD-MIN-LIMBS,
author = {{The FLINT team}},
title = {{MPN\_MOD\_MIN\_LIMBS, MPN\_MOD\_MAX\_LIMBS (mpn\_mod.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mpn_mod/MPN_MOD_MIN_LIMBS.html},
note = {Generated 2026-10-20}
}