FLINT_MPN_INVERT_LIMB
Synopsis
#include <flint/mpn_extras.h>FLINT_MPN_INVERT_LIMB(v, d)sourceSets v to \lfloor (B^2 - 1)/d \rfloor - B for a normalised limb d: by a hardware division where that is fast, by GMP's assembly mpn_invert_limb where available, and otherwise by a table-based Newton iteration.
Cite this page
The FLINT team, “FLINT_MPN_INVERT_LIMB (mpn_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpn_extras/FLINT_MPN_INVERT_LIMB.html (generated 2026-10-20).
@misc{flint-doc-mpn-extras-FLINT-MPN-INVERT-LIMB,
author = {{The FLINT team}},
title = {{FLINT\_MPN\_INVERT\_LIMB (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_INVERT_LIMB.html},
note = {Generated 2026-10-20}
}