FLINT3.7.0-dev

mp_real_fit_length, _mp_real_grow

Synopsis#include <flint/mp_real.h>
void mp_real_fit_length(mp_real_t x, slong len)source
void _mp_real_grow(mp_real_t x, slong len)source

Ensure that x has room for len mantissa limbs. The inline function calls _mp_real_grow when it has to reallocate; the contents of the mantissa are preserved.

Guides#

Cite this page

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