FLINT3.7.0-dev

mpoly_exp_bits_required_ui, mpoly_exp_bits_required_ffmpz, mpoly_exp_bits_required_pfmpz

Synopsis#include <flint/mpoly.h>
flint_bitcnt_t mpoly_exp_bits_required_ui(const ulong * user_exp, const mpoly_ctx_t mctx)source
flint_bitcnt_t mpoly_exp_bits_required_ffmpz(const fmpz * user_exp, const mpoly_ctx_t mctx)source
flint_bitcnt_t mpoly_exp_bits_required_pfmpz(fmpz * const * user_exp, const mpoly_ctx_t mctx)source

Return the number of bits needed to pack the user exponent vector user_exp, including the guard bit: one more than the bit length of the largest exponent, or of the total degree for degree orderings. The result is not rounded with mpoly_fix_bits. For _ui, a total degree that overflows a word gives 2*FLINT_BITS.

Cite this page

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