MPOLY_GET_CMPMASK_TMP_ALLOC, MPOLY_GET_CMPMASK_FLINT_MALLOC
Synopsis
#include <flint/mpoly.h>MPOLY_GET_CMPMASK_TMP_ALLOC(cmpmask, N, bits, mctx)sourceMPOLY_GET_CMPMASK_FLINT_MALLOC(cmpmask, N, bits, mctx)sourceSet N to mpoly_words_per_exp(bits, mctx), allocate N words for cmpmask and fill them with mpoly_get_cmpmask. The first macro allocates with TMP_ALLOC and may only be used between TMP_START and TMP_END; the second allocates with flint_malloc, and the caller must free the mask with flint_free (use it when the mask must outlive the current TMP scope, for instance when it is passed to worker threads).
Cite this page
The FLINT team, “MPOLY_GET_CMPMASK_TMP_ALLOC, MPOLY_GET_CMPMASK_FLINT_MALLOC (mpoly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpoly/MPOLY_GET_CMPMASK_TMP_ALLOC.html (generated 2026-10-20).
@misc{flint-doc-mpoly-MPOLY-GET-CMPMASK-TMP-ALLOC,
author = {{The FLINT team}},
title = {{MPOLY\_GET\_CMPMASK\_TMP\_ALLOC, MPOLY\_GET\_CMPMASK\_FLINT\_MALLOC (mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mpoly/MPOLY_GET_CMPMASK_TMP_ALLOC.html},
note = {Generated 2026-10-20}
}