_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)sourceSplits 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).
@misc{flint-doc-thread-pool-thread-pool-distribute-work-2,
author = {{The FLINT team}},
title = {{\_thread\_pool\_distribute\_work\_2 (thread\_pool.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/thread_pool/_thread_pool_distribute_work_2.html},
note = {Generated 2026-10-20}
}