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+yx + y and (d, n) to x−yx - y, each modulo BnB^n, and returns 2c+b2c + b, where cc is the carry of the sum and bb 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-11-02).