FLINT3.7.0-dev

flint_mpn_fmms1

Synopsis#include <flint/mpn_extras.h>
mp_size_t flint_mpn_fmms1(mp_ptr y, mp_limb_t a1, mp_srcptr x1, mp_limb_t a2, mp_srcptr x2, mp_size_t n)source

Tries to compute y = a_1 x_1 - a_2 x_2, where x_1 and x_2 have n \ge 1 limbs (not necessarily normalised). If the result is nonnegative and fits in n limbs, it is written to (y, n) and its normalised length is returned; otherwise -1 is returned and (y, n) holds garbage. y may alias x_1 but not x_2.

Cite this page

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