FLINT3.7.0-dev

MPN_INCR_U, MPN_DECR_U

Synopsis#include <flint/longlong.h>
MPN_INCR_U(ptr, size, incr)source
MPN_DECR_U(ptr, size, incr)source

Add or subtract the word incr to or from the integer of size limbs at ptr, in place, using GMP's mpn_add_1 and mpn_sub_1 (so gmp.h must be included). The carry or borrow out must be zero; this is checked when assertions are enabled.

Cite this page

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