FLINT3.7.0-dev

fmpz_allocated_bytes

Synopsis#include <flint/fmpz_extras.h>
slong fmpz_allocated_bytes(const fmpz_t x)source

Returns the number of bytes allocated on the heap for x: 0 for an inline value, and the size of the mpz structure plus its allocated limbs otherwise. Add sizeof(fmpz) for the total size of the object.

Guides#

Cite this page

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