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)sourceDivides (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).
@misc{flint-doc-mpn-extras-flint-mpn-remove-2exp,
author = {{The FLINT team}},
title = {{flint\_mpn\_remove\_2exp (mpn\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mpn_extras/flint_mpn_remove_2exp.html},
note = {Generated 2026-10-20}
}