FMPZ_GET_MPN_READONLY
Synopsis
#include <flint/fmpz_extras.h>FMPZ_GET_MPN_READONLY(zsign, zn, zptr, ztmp, zv)sourceGiven the fmpz value zv (a word, not an fmpz_t), sets zptr to a pointer to the limbs of |zv|, zn to their number and zsign to 1 if zv is negative and 0 otherwise. For an inline value the absolute value is stored in the ulong variable ztmp, which zptr then points to, so ztmp must stay in scope while zptr is used. Zero is not handled specially: it gives zn = 1 and a zero limb.
Guides#
- The fmpz representation (
fmpz)
Cite this page
The FLINT team, “FMPZ_GET_MPN_READONLY (fmpz_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_extras/FMPZ_GET_MPN_READONLY.html (generated 2026-10-20).
@misc{flint-doc-fmpz-extras-FMPZ-GET-MPN-READONLY,
author = {{The FLINT team}},
title = {{FMPZ\_GET\_MPN\_READONLY (fmpz\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_extras/FMPZ_GET_MPN_READONLY.html},
note = {Generated 2026-10-20}
}