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)sourceSets (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).
@misc{flint-doc-fft-flint-mpn-sumdiff-n,
author = {{The FLINT team}},
title = {{flint\_mpn\_sumdiff\_n (fft.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fft/flint_mpn_sumdiff_n.html},
note = {Generated 2026-10-20}
}