Lines Matching refs:init
108 typename traits_t<T>::unsigned_t &init,
133 init = id * small_chunk + id * p_extra + (id < extras ? id : extras);
135 init = id * small_chunk + (id - num_procs_with_ecore) * p_extra +
140 init = id * small_chunk + id * p_extra + (id < extras ? id : extras);
142 init = id * small_chunk + first_thread_with_ecore * p_extra +
154 init = id * small_chunk + (id < extras ? id : extras);
433 T ntc, init = 0;
532 init =
535 init = id * small_chunk + (id - num_procs_with_ecore) * p_extra +
540 init =
543 init = id * small_chunk + first_thread_with_ecore * p_extra +
553 init = id * small_chunk + (id < extras ? id : extras);
556 pr->u.p.count = init;
558 pr->u.p.ub = init + small_chunk + p_extra + (id < extras ? 1 : 0);
565 pr->u.p.ub = init; // mark there is no iterations to work on
585 T init, limit;
597 init = id;
608 init = id * small_chunk + (id < extras ? id : extras);
609 limit = init + small_chunk - (id < extras ? 0 : 1);
614 init = 0;
628 *cur_chunk = limit - init + 1;
631 pr->u.p.lb = lb + init;
636 pr->u.p.lb = lb + init * st;
646 pr->u.p.ordered_lower = init;
1336 UT limit, trip, init;
1387 init = (pr->u.p.count)++;
1388 status = (init < (UT)pr->u.p.ub);
1428 init, small_chunk, extras,
1431 pr->u.p.count = init + 1; // exclude one we execute immediately
1432 pr->u.p.ub = init + small_chunk + p_extra + (id < extras ? 1 : 0);
1475 init = (v->u.p.ub -= (remaining >> 2));
1479 init = (v->u.p.ub -= 1);
1490 KD_TRACE(10, (buff, gtid, victimId, init, limit));
1494 KMP_DEBUG_ASSERT(init + 1 <= limit);
1497 // now update own count and ub with stolen range excluding init chunk
1499 pr->u.p.count = init + 1;
1503 if (init + 1 < limit)
1532 init = vold.p.count;
1533 status = (init < (UT)vold.p.ub);
1571 init, small_chunk, extras,
1573 vnew.p.count = init + 1;
1574 vnew.p.ub = init + small_chunk + p_extra + (id < extras ? 1 : 0);
1641 init = vnew.p.ub;
1642 vold.p.count = init + 1;
1665 init *= chunk;
1666 limit = chunk + init - 1;
1670 KMP_DEBUG_ASSERT(init <= trip);
1680 *p_lb = start + init;
1683 *p_lb = start + init * incr;
1719 init = parm1 * (pr->u.p.count + tid);
1721 if ((status = (init <= trip)) != 0) {
1724 limit = parm1 + init - 1;
1735 *p_lb = start + init;
1738 *p_lb = start + init * incr;
1743 pr->u.p.ordered_lower = init;
1768 init = chunk_size * chunk_number;
1773 if ((last = (trip - init < (UT)chunk_size)))
1776 limit = chunk_size + init - 1;
1782 *p_lb = start + init;
1785 *p_lb = start + init * incr;
1790 pr->u.p.ordered_lower = init;
1806 init = sh->u.s.iteration; // shared value
1807 remaining = trip - init;
1817 init = test_then_add<ST>(RCAST(volatile ST *, &sh->u.s.iteration),
1819 remaining = trip - init;
1826 limit = init + chunkspec - 1;
1829 limit = init + remaining - 1;
1834 limit = init + (UT)((double)remaining *
1837 (ST)init, (ST)limit)) {
1849 *p_lb = start + init * incr;
1852 pr->u.p.ordered_lower = init;
1875 init = sh->u.s.iteration; // shared value
1876 remaining = trip - init;
1881 KMP_DEBUG_ASSERT(chunk && init % chunk == 0);
1886 init = test_then_add<ST>(RCAST(volatile ST *, &sh->u.s.iteration),
1888 remaining = trip - init;
1895 limit = init + chunk - 1;
1898 limit = init + remaining - 1;
1910 limit = init + span;
1912 (ST)init, (ST)limit)) {
1924 *p_lb = start + init * incr;
1927 pr->u.p.ordered_lower = init;
1963 init = chunkIdx * chunkspec + pr->u.p.count;
1964 /* need to verify init > 0 in case of overflow in the above
1966 if ((status = (init > 0 && init <= trip)) != 0) {
1967 limit = init + chunkspec - 1;
1977 This check works around the possible effect that init != 0 for chunkIdx == 0.
1990 init = __kmp_dispatch_guided_remaining<T>(
1992 KMP_DEBUG_ASSERT(init);
1993 init = trip - init;
1995 init = 0;
1998 KMP_ASSERT(init <= limit);
1999 if (init < limit) {
2019 *p_lb = start + init * incr;
2022 pr->u.p.ordered_lower = init;
2045 init = (index * ((2 * parm2) - (index - 1) * parm4)) / 2;
2048 if ((status = ((T)index < parm3 && init <= trip)) == 0) {
2065 *p_lb = start + init;
2068 *p_lb = start + init * incr;
2073 pr->u.p.ordered_lower = init;
2230 UT limit, trip, init;
2237 init = chunk * pr->u.p.count++;
2240 if ((status = (init <= trip)) == 0) {
2254 limit = chunk + init - 1;
2268 *p_lb = start + init;
2271 *p_lb = start + init * incr;
2276 pr->u.p.ordered_lower = init;