_flint_mpn_gcd_inplace
Synopsis
#include <flint/mpn_extras.h>mp_size_t _flint_mpn_gcd_inplace(mp_ptr gp, mp_ptr up, mp_size_t un, mp_ptr vp, mp_size_t vn)sourceThe GCD with the interface of GMP's mpn_gcd: sets to the greatest common divisor of and and returns . It is required that , that the top limb of is nonzero and that at least one of the operands is odd. Both inputs are destroyed. gp needs room for limbs; it may be equal to up or vp but must not otherwise overlap them.
Cite this page
The FLINT team, “_flint_mpn_gcd_inplace (mpn_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpn_extras/_flint_mpn_gcd_inplace.html (generated 2026-11-02).
@misc{flint-doc-mpn-extras-flint-mpn-gcd-inplace,
author = {{The FLINT team}},
title = {{\_flint\_mpn\_gcd\_inplace (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_gcd_inplace.html},
note = {Generated 2026-11-02}
}