FLINT3.7.0-dev

flint_mpn_gcd_vec_1

Synopsis#include <flint/mpn_extras.h>
ulong flint_mpn_gcd_vec_1(mp_srcptr x, slong len, ulong g)source

Returns the greatest common divisor of gg and the len limbs x0,…,xlen−1x_0, \ldots, x_{\mathit{len}-1}, any of which (and gg) may be zero; the result is 0 only if all are zero.

Cite this page

The FLINT team, “flint_mpn_gcd_vec_1 (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_vec_1.html (generated 2026-11-02).