FLINT3.7.0-dev

_arf_mpn_increment, _arf_mpn_decrement

Synopsis#include <flint/arf.h>
int _arf_mpn_increment(nn_ptr res, slong rn, slong sb)source
int _arf_mpn_decrement(nn_ptr res, slong rn, slong sb)source

The rn\mathit{rn} normalised limbs res, whose bits below sb are zero, moved up or down by one unit of 2sb2^{\mathit{sb}}. The increment returns the carry (1 when the result is a power of two, with the exponent increased); the decrement returns −1-1 when res was a power of two, the result being the rn⋅FLINT_BITS−sb\mathit{rn} \cdot \mathtt{FLINT\_BITS} - \mathit{sb} ones just below it, normalised (the exponent decreases), else 0.

Cite this page

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