FLINT3.7.0-dev

_fmpz_vec_max_bits, _fmpz_vec_max_bits_ref

Synopsis#include <flint/fmpz_vec.h>
slong _fmpz_vec_max_bits(const fmpz * vec, slong len)source
slong _fmpz_vec_max_bits_ref(const fmpz * vec, slong len)source

Return b or -b, where b is the maximum of the bit sizes of the absolute values of the entries; the sign is negative if some entry is negative. The _ref version is a simple reference implementation used in tests.

Cite this page

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