FLINT3.7.0-dev

GR_TMP_VEC_ALLOC_MAX_STACK, GR_TMP_ALLOC, GR_TMP_FREE, GR_TMP_ALLOC_SMALL

Synopsis#include <flint/gr.h>
GR_TMP_VEC_ALLOC_MAX_STACKsource
GR_TMP_ALLOC(size)source
GR_TMP_FREE(ptr, size)source
GR_TMP_ALLOC_SMALL(size)source

The allocation helpers behind the temporary macros: GR_TMP_ALLOC allocates on the stack up to GR_TMP_VEC_ALLOC_MAX_STACK bytes and with flint_malloc above, GR_TMP_FREE frees what GR_TMP_ALLOC allocated on the heap, and GR_TMP_ALLOC_SMALL always uses alloca.

Cite this page

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