FLINT3.7.0-dev

flint_mpn_mul_2

Synopsis#include <flint/mpn_extras.h>
mp_limb_t flint_mpn_mul_2(mp_ptr rp, mp_srcptr ap, mp_size_t n, mp_srcptr bp)source

Sets (\mathit{rp}, n + 2) to the product of (\mathit{ap}, n) and the two-limb (\mathit{bp}, 2) and returns the top limb. Only available on ARM64 (FLINT_HAVE_NATIVE_mpn_mul_2), where it is an assembly routine used by flint_mpn_mul.

Cite this page

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