FLINT3.7.0-dev

_mp_real_fp_normalize

Synopsis#include <flint/mp_real.h>
ulong _mp_real_fp_normalize(nn_ptr t, slong * te, nn_srcptr y, slong len, slong ue, ulong err, slong wn)source

For (y,len)>0(y, \mathit{len}) > 0 known within err units of 2ue2^{\mathit{ue}}, sets (t,wn)(t, \mathit{wn}) to its leading limbs normalised (top bit set), so that Y=T 2teY = T \, 2^{\mathit{te}} within the returned number of units of 2te2^{\mathit{te}} (shifted-out bits count as one more unit). Returns UWORD_MAX if the scaled bound would exceed 2FLINT_BITS−32^{\mathtt{FLINT\_BITS} - 3}.

Cite this page

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