FLINT3.7.0-dev

gr_generic_mul_2exp_si, gr_generic_mul_2exp_fmpz

Synopsis#include <flint/gr_generic.h>
int gr_generic_mul_2exp_si(gr_ptr res, gr_srcptr x, slong y, gr_ctx_t ctx)source
int gr_generic_mul_2exp_fmpz(gr_ptr res, gr_srcptr x, const fmpz_t y, gr_ctx_t ctx)source

Multiply by 2^y computed in the ring with gr_pow_ui (or gr_pow_fmpz), or divide by 2^{-y} for negative y.

Cite this page

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