FLINT3.7.0-dev

flint_mpn_sumdiff_n

Synopsis#include <flint/fft.h>
mp_limb_t flint_mpn_sumdiff_n(mp_ptr s, mp_ptr d, mp_srcptr x, mp_srcptr y, mp_size_t n)source

Sets (s, n) to x + y and (d, n) to x - y, each modulo B^n, and returns 2c + b, where c is the carry of the sum and b the borrow of the difference. The outputs may alias the inputs. Declared here for the butterflies; defined in mpn_extras.

Cite this page

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