FLINT3.7.0-dev

MPOLY_GET_CMPMASK_TMP_ALLOC, MPOLY_GET_CMPMASK_FLINT_MALLOC

Synopsis#include <flint/mpoly.h>
MPOLY_GET_CMPMASK_TMP_ALLOC(cmpmask, N, bits, mctx)source
MPOLY_GET_CMPMASK_FLINT_MALLOC(cmpmask, N, bits, mctx)source

Set 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).