mag_struct, mag_t, mag_ptr, mag_srcptr
Synopsis
#include <flint/mag.h>mag_structmag_tmag_ptrmag_srcptrA mag_struct has two fields, an fmpz exponent exp and a ulong mantissa man. A finite nonzero value is \mathit{man} \cdot 2^{\mathit{exp} - 30} with 2^{29} \le \mathit{man} < 2^{30}, that is, a number in [2^{\mathit{exp}-1}, 2^{\mathit{exp}}). Zero is stored as \mathit{man} = 0, \mathit{exp} = 0, and +\infty as \mathit{man} = 0 with a nonzero exponent. There is no NaN. A mag_t is an array of one mag_struct, so that it is passed by reference; mag_ptr and mag_srcptr point to arrays of mag_struct.
Guides#
Cite this page
The FLINT team, “mag_struct, mag_t, mag_ptr, mag_srcptr (mag.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mag/mag_struct.html (generated 2026-10-20).
@misc{flint-doc-mag-mag-struct,
author = {{The FLINT team}},
title = {{mag\_struct, mag\_t, mag\_ptr, mag\_srcptr (mag.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mag/mag_struct.html},
note = {Generated 2026-10-20}
}