flint_mpn_mod_2exp48m1
Synopsis
#include <flint/mpn_extras.h>mp_limb_t flint_mpn_mod_2exp48m1(mp_srcptr a, mp_size_t n)sourceReturns a value below 2^{50} congruent to (a, n) modulo 2^{48} - 1, the quantity computed by GMP's internal mpn_mod_34lsub1 (which is called for inputs shorter than 48 limbs when available). Longer inputs use an AVX2 kernel when compiled with AVX2 support, or a portable carry-chain loop. Only available for 64-bit limbs.
Cite this page
The FLINT team, “flint_mpn_mod_2exp48m1 (mpn_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpn_extras/flint_mpn_mod_2exp48m1.html (generated 2026-10-20).
@misc{flint-doc-mpn-extras-flint-mpn-mod-2exp48m1,
author = {{The FLINT team}},
title = {{flint\_mpn\_mod\_2exp48m1 (mpn\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mpn_extras/flint_mpn_mod_2exp48m1.html},
note = {Generated 2026-10-20}
}