FLINT3.7.0-dev

_nmod_poly_bit_pack

Synopsis#include <flint/nmod_poly.h>
void _nmod_poly_bit_pack(nn_ptr res, nn_srcptr poly, slong len, flint_bitcnt_t bits)source

Writes ∑ipolyi2i⋅bits\sum_i \mathit{poly}_i 2^{i \cdot \mathit{bits}} to res as ⌈len⋅bits/FLINT_BITS⌉\lceil \mathit{len} \cdot \mathit{bits} / \mathtt{FLINT\_BITS} \rceil limbs. Requires len≥1\mathit{len} \ge 1, 1≤bits<3FLINT_BITS1 \le \mathit{bits} < 3 \mathtt{FLINT\_BITS} and every coefficient less than 2bits2^{\mathit{bits}}.

Cite this page

The FLINT team, “_nmod_poly_bit_pack (nmod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly/_nmod_poly_bit_pack.html (generated 2026-11-02).