_fmpz_poly_bit_pack
Synopsis
#include <flint/fmpz_poly.h>void _fmpz_poly_bit_pack(nn_ptr arr, const fmpz * poly, slong len, flint_bitcnt_t bit_size, int negate)sourceAdds the coefficients of (poly, len), negated if negate is , into consecutive fields of bit_size bits of the zero-initialised limb array arr, representing negative coefficients by borrows from the next field, so that the array holds as a nonnegative integer when the leading coefficient times the sign is positive. negate must be 0 or , and bit_size must exceed the bit length of every coefficient.
Cite this page
The FLINT team, “_fmpz_poly_bit_pack (fmpz_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_poly/_fmpz_poly_bit_pack.html (generated 2026-11-02).
@misc{flint-doc-fmpz-poly-fmpz-poly-bit-pack,
author = {{The FLINT team}},
title = {{\_fmpz\_poly\_bit\_pack (fmpz\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_poly/_fmpz_poly_bit_pack.html},
note = {Generated 2026-11-02}
}