FLINT3.7.0-dev

flint_mpn_remove_2exp

Synopsis#include <flint/mpn_extras.h>
mp_size_t flint_mpn_remove_2exp(mp_ptr x, mp_size_t xsize, flint_bitcnt_t * bits)source

Divides (x, \mathit{xsize}) in place by 2^v, where v is the number of trailing zero bits, stores v in bits and returns the new length. x must be nonzero.

Cite this page

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