#include "thread_pool.h"
void _thread_pool_distribute_work_2(
slong start, slong stop,
slong * Astart, slong * Astop, slong Alen,
slong * Bstart, slong * Bstop, slong FLINT_UNUSED(Blen))
{
FLINT_ASSERT(0 <= start);
FLINT_ASSERT(start <= stop);
FLINT_ASSERT(stop <= Alen + Blen);
if (start >= Alen)
{
*Astart = 0;
*Astop = 0;
*Bstart = start - Alen;
*Bstop = stop - Alen;
}
else if (stop <= Alen)
{
*Astart = start;
*Astop = stop;
*Bstart = 0;
*Bstop = 0;
}
else
{
*Astart = start;
*Astop = Alen;
*Bstart = 0;
*Bstop = stop - Alen;
}
}