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)sourceTries 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).
@misc{flint-doc-mpn-extras-flint-mpn-fmms1,
author = {{The FLINT team}},
title = {{flint\_mpn\_fmms1 (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_fmms1.html},
note = {Generated 2026-10-20}
}