FLINT3.7.0-dev

mpn_mod_fmma

Synopsis#include <flint/mpn_mod.h>
int mpn_mod_fmma(nn_ptr res, nn_srcptr x1, nn_srcptr y1, nn_srcptr x2, nn_srcptr y2, gr_ctx_t ctx)source

Sets res to x_1 y_1 + x_2 y_2 \bmod n with a single reduction of the unreduced sum (flint_mpn_fmmamod_preinvn), which costs little more than one modular multiplication.

Cite this page

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