FLINT3.7.0-dev

mpoly_fix_bits

Synopsis#include <flint/mpoly.h>
flint_bitcnt_t mpoly_fix_bits(flint_bitcnt_t bits, const mpoly_ctx_t mctx)source

Rounds a required number of bits up to a valid packing width. For \mathit{bits} \le FLINT_BITS the result is the largest width that is at least MPOLY_MIN_BITS and at least bits and needs no more words than bits itself, so no space is wasted; for larger bits it is the next multiple of FLINT_BITS. For example, with three variables and lex ordering, any bits up to 21 is rounded to 21 on a 64-bit machine.

Cite this page

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