FLINT3.7.0-dev

_mp_real_bs_step_uses

Synopsis#include <flint/mp_real.h>
void _mp_real_bs_step_uses(slong * uses, slong * rmax, const slong * xexp, slong len, slong N)source

For a binary splitting of N terms with fixed midpoints (ranges of one or two terms being leaves) whose split steps are the len entries of xexp, set uses[i] to the number of merges using the step xexp[i] and rmax[i] to the longest right child of those merges.

The ranges of a level differ in length by at most one, so the counts follow from N alone by tracking at most two distinct lengths per level, in O(\log N) time.

Cite this page

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