FLINT3.7.0-dev

fft_small_op_pool_scratch_take, fft_small_op_pool_scratch_give

Synopsis#include <flint/fft_small.h>
ulong * fft_small_op_pool_scratch_take(fft_small_op_pool_t pool, ulong limbs, int use_slabs)source
void fft_small_op_pool_scratch_give(fft_small_op_pool_t pool, ulong * t)source

Return scratch space for limbs limbs and give it back. The space is the staging region if it is free and large enough, otherwise a free slab if use_slabs is nonzero and one is large enough, otherwise a fresh allocation; concurrent requests never share it.

Cite this page

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