FLINT3.7.0-dev

fmpz_mul_2exp, fmpz_one_2exp

Synopsis#include <flint/fmpz.h>
void fmpz_mul_2exp(fmpz_t f, const fmpz_t g, ulong exp)source
void fmpz_one_2exp(fmpz_t f, ulong exp)source

Set f to g 2^{\mathit{exp}}, respectively 2^{\mathit{exp}}. fmpz_mul_2exp assumes that \mathit{exp} + \mathtt{FLINT\_BITS} does not overflow an ulong.

Guides#

Cite this page

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