_mpn_ctx_mpn_mul_np2, _mpn_ctx_mpn_mullow_np2, _mpn_ctx_mpn_mul_window_np2
#include <flint/fft_small.h>void _mpn_ctx_mpn_mul_np2(mpn_ctx_t R, nn_ptr z, nn_srcptr a, ulong an, nn_srcptr b, ulong bn)sourcevoid _mpn_ctx_mpn_mullow_np2(mpn_ctx_t R, nn_ptr z, ulong zh, nn_srcptr a, ulong an, nn_srcptr b, ulong bn)sourcevoid _mpn_ctx_mpn_mul_window_np2(mpn_ctx_t R, nn_ptr z, ulong zl, ulong zh, nn_srcptr a, ulong an, nn_srcptr b, ulong bn)sourceThe full product, its low limbs, and its limbs , by the two-prime pipeline. Require and . The window is exact for and otherwise smaller than the exact window by 0 or 1 units of its lowest limb.
Requires a chunk size satisfying the bound of _fft_small_np2_choose with len_bound = 1, which holds up to well beyond 40000 limbs (with 40-bit chunks, for up to about 300000 limbs). _mpn_ctx_mpn_mul_window_np2 computes a window with fewer chunk coefficients than as a transposed product of the reversed chunks of and the chunks of from a limb boundary on, when its transform is strictly shorter than that of the full product (which it does not wrap around), except for squarings; the result is the same, bit for bit.
The FLINT team, “_mpn_ctx_mpn_mul_np2, _mpn_ctx_mpn_mullow_np2, _mpn_ctx_mpn_mul_window_np2 (fft_small.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fft_small/_mpn_ctx_mpn_mul_np2.html (generated 2026-11-02).
@misc{flint-doc-fft-small-mpn-ctx-mpn-mul-np2,
author = {{The FLINT team}},
title = {{\_mpn\_ctx\_mpn\_mul\_np2, \_mpn\_ctx\_mpn\_mullow\_np2, \_mpn\_ctx\_mpn\_mul\_window\_np2 (fft\_small.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fft_small/_mpn_ctx_mpn_mul_np2.html},
note = {Generated 2026-11-02}
}