FLINT3.7.0-dev

mag_add_2exp_fmpz, mag_add_ui_2exp_si

Synopsis#include <flint/mag.h>
void mag_add_2exp_fmpz(mag_t res, const mag_t x, const fmpz_t e)source
void mag_add_ui_2exp_si(mag_t res, const mag_t x, ulong y, slong e)source

Set res to an upper bound for x + 2^e, respectively x + y 2^e.

Cite this page

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