FLINT3.7.0-dev

fq_nmod_bit_pack, fq_nmod_bit_unpack

Synopsis#include <flint/fq_nmod.h>
void fq_nmod_bit_pack(fmpz_t f, const fq_nmod_t op, flint_bitcnt_t bit_size, const fq_nmod_ctx_t ctx)source
void fq_nmod_bit_unpack(fq_nmod_t rop, const fmpz_t f, flint_bitcnt_t bit_size, const fq_nmod_ctx_t ctx)source

Pack the coefficients of op into bit_size-bit fields of an integer, and unpack and reduce, as fq_bit_pack and fq_bit_unpack.

Cite this page

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