FLINT3.7.0-dev

fq_zech_bit_pack, fq_zech_bit_unpack

Synopsis#include <flint/fq_zech.h>
void fq_zech_bit_pack(fmpz_t f, const fq_zech_t op, flint_bitcnt_t bit_size, const fq_zech_ctx_t ctx)source
void fq_zech_bit_unpack(fq_zech_t rop, const fmpz_t f, flint_bitcnt_t bit_size, const fq_zech_ctx_t ctx)source

Pack the coefficients of the polynomial representative of op into bit_size-bit fields of an integer, and unpack and convert back, via the fq_nmod representation, as fq_bit_pack and fq_bit_unpack.

Cite this page

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