FLINT3.7.0-dev

flint_mpn_binv

Synopsis#include <flint/mpn_extras.h>
void flint_mpn_binv(mp_ptr res, mp_srcptr x, mp_size_t xn, mp_size_t n)source

Sets (\mathit{res}, n) to x^{-1} \bmod B^n, for odd x. Newton iteration on middle products; up to FLINT_MPN_BINV_MULLOW_CUTOFF limbs full low products are used instead, and the cases n \le 3 are inlined.

Cite this page

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