FLINT3.7.0-dev

_mp_real_set_mpn_2exp

Synopsis#include <flint/mp_real.h>
void _mp_real_set_mpn_2exp(mp_real_t x, nn_srcptr p, slong len, slong e)source

Set x exactly to (p, \mathit{len})\, 2^e for the unsigned integer (p, \mathit{len}), which may have zero top limbs. The bit part of e costs one limb shift.

Guides#

Cite this page

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