FLINT3.7.0-dev

flint_mpn_mod_2exp48m1

Synopsis#include <flint/mpn_extras.h>
mp_limb_t flint_mpn_mod_2exp48m1(mp_srcptr a, mp_size_t n)source

Returns 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).