FLINT3.7.0-dev

gr_transformed_mpn_use_fit_buffer

Synopsis#include <flint/gr.h>
int gr_transformed_mpn_use_fit_buffer(gr_ctx_t ctx, slong num_live)source

Switches a context created with GR_TRANSFORMED_MPN_ALLOC_MALLOC to the reserved-slab strategy for num_live simultaneously live elements, as if it had been created that way. This serves callers whose live count depends on quantities derived from the constructed context, such as a blocking decision based on the element size. Returns GR_UNABLE, leaving separate allocation in place, if the reservation cannot be made.

Cite this page

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