FLINT3.7.0-dev

flint_mpn_signed_div2

Synopsis#include <flint/mpn_extras.h>
void flint_mpn_signed_div2(mp_ptr res, mp_srcptr x, mp_size_t n)source

Sets (\mathit{res}, n) to x / 2 rounded towards -\infty, where x is read as an n-limb two's complement integer (an arithmetic shift right by one bit). The output may alias the input.

Cite this page

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