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_STACKsourceGR_TMP_ALLOC(size)sourceGR_TMP_FREE(ptr, size)sourceGR_TMP_ALLOC_SMALL(size)sourceThe 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).
@misc{flint-doc-gr-GR-TMP-VEC-ALLOC-MAX-STACK,
author = {{The FLINT team}},
title = {{GR\_TMP\_VEC\_ALLOC\_MAX\_STACK, GR\_TMP\_ALLOC, GR\_TMP\_FREE, GR\_TMP\_ALLOC\_SMALL (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr/GR_TMP_VEC_ALLOC_MAX_STACK.html},
note = {Generated 2026-10-20}
}