FLINT3.7.0-dev

_fmpz_demote, _fmpz_demote_val

Synopsis#include <flint/fmpz.h>
void _fmpz_demote(fmpz_t f)source
void _fmpz_demote_val(fmpz_t f)source

_fmpz_demote releases the mpz of f, if any, and sets f to 0 (any value then fits inline). _fmpz_demote_val moves the value of f back inline if it fits, restoring canonical form.

Guides#

Cite this page

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