FLINT3.7.0-dev

_convert_block, _convert_block_1_mod

Synopsis#include <flint/fft_small.h>
void _convert_block(ulong * Xs, sd_fft_ctx_struct * Rffts, double * d, ulong dstride, ulong np, ulong Iv)source
void _convert_block_1_mod(ulong * Xs, sd_fft_ctx_struct * Rffts, double * d, ulong dstride, ulong I, double p2, double p2inv)source

For each prime l < np, reduce block I of the data d + l \cdot dstride to [0, p_l) and store it as integers at Xs + 256 l. The second form converts only the first prime and reduces the results further modulo the double p2 (with p2inv = 1/p_2).

Cite this page

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