FLINT3.7.0-dev

fq_bit_pack

Synopsis#include <flint/fq.h>
void fq_bit_pack(fmpz_t f, const fq_t op, flint_bitcnt_t bit_size, const fq_ctx_t ctx)source

Sets f to \sum_i a_i 2^{i \cdot \mathit{bit\_size}}, where the a_i are the coefficients of op. Each coefficient must fit in bit_size bits, that is, p \le 2^{\mathit{bit\_size}}.

Cite this page

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