FLINT3.7.0-dev

gr_transformed_mpn_get_low, gr_transformed_mpn_get_low_destructive

Synopsis#include <flint/gr.h>
int gr_transformed_mpn_get_low(nn_ptr z, slong zn, gr_srcptr x, gr_ctx_t ctx)source
int gr_transformed_mpn_get_low_destructive(nn_ptr z, slong zn, gr_ptr x, gr_ctx_t ctx)source

Residue conversion out: z receives the value modulo 2^{\mathtt{FLINT\_BITS} \cdot \mathit{zn}} as a two's-complement residue of exactly zn limbs, with no sign, whatever the size of the value. Only the CRT slots starting below limb zn are reconstructed, so this costs a fraction of a full conversion when zn is a fraction of the length of the value.

Cite this page

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