FLINT3.7.0-dev

fmpz_lshift_mpn

Synopsis#include <flint/fmpz_extras.h>
void fmpz_lshift_mpn(fmpz_t z, nn_srcptr src, slong n, int negative, flint_bitcnt_t shift)source

Sets z to the integer given by the n \ge 1 limbs src (with a nonzero top limb), negated if negative is 1, and multiplied by 2^{\mathit{shift}}. Used to convert mantissas of floating-point numbers to integers. The result is demoted if it is small.

Cite this page

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