FLINT3.7.0-dev

_thread_pool_distribute_work_2

Synopsis#include <flint/thread_pool.h>
void _thread_pool_distribute_work_2(slong start, slong stop, slong * Astart, slong * Astop, slong Alen, slong * Bstart, slong * Bstop, slong Blen)source

Splits the index range [\mathit{start}, \mathit{stop}) of the concatenation of two arrays of lengths Alen and Blen into the corresponding ranges [\mathit{Astart}, \mathit{Astop}) of the first array and [\mathit{Bstart}, \mathit{Bstop}) of the second; empty ranges are returned as [0, 0). Requires 0 \le \mathit{start} \le \mathit{stop} \le \mathit{Alen} + \mathit{Blen}.

Cite this page

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