Lines Matching refs:trip_count
97 UT trip_count; in __kmp_for_static_init() local
280 trip_count = *pupper - *plower + 1; in __kmp_for_static_init()
282 trip_count = *plower - *pupper + 1; in __kmp_for_static_init()
285 trip_count = (UT)(*pupper - *plower) / incr + 1; in __kmp_for_static_init()
287 trip_count = (UT)(*plower - *pupper) / (-incr) + 1; in __kmp_for_static_init()
292 KMP_COUNT_VALUE(OMP_loop_static_total_iterations, trip_count); in __kmp_for_static_init()
298 if (trip_count == 0 && *pupper != *plower) { in __kmp_for_static_init()
307 if (trip_count < nth) { in __kmp_for_static_init()
312 if (tid < trip_count) { in __kmp_for_static_init()
319 *plastiter = (tid == trip_count - 1); in __kmp_for_static_init()
322 UT small_chunk = trip_count / nth; in __kmp_for_static_init()
323 UT extras = trip_count % nth; in __kmp_for_static_init()
330 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr; in __kmp_for_static_init()
355 *pstride = trip_count; in __kmp_for_static_init()
363 else if ((UT)chunk > trip_count) in __kmp_for_static_init()
364 chunk = trip_count; in __kmp_for_static_init()
365 nchunks = (trip_count) / (UT)chunk + (trip_count % (UT)chunk ? 1 : 0); in __kmp_for_static_init()
387 UT span = (trip_count + nth - 1) / nth; in __kmp_for_static_init()
402 *plastiter = (tid == ((trip_count - 1) / (UT)chunk)); in __kmp_for_static_init()
420 cur_chunk = trip_count / nth + ((trip_count % nth) ? 1 : 0); in __kmp_for_static_init()
423 __kmp_itt_metadata_loop(loc, 0, trip_count, cur_chunk); in __kmp_for_static_init()
444 &(task_info->task_data), trip_count, codeptr); in __kmp_for_static_init()
491 UT trip_count; in __kmp_dist_for_static_init() local
543 trip_count = *pupper - *plower + 1; in __kmp_dist_for_static_init()
545 trip_count = *plower - *pupper + 1; in __kmp_dist_for_static_init()
548 trip_count = (UT)(*pupper - *plower) / incr + 1; in __kmp_dist_for_static_init()
550 trip_count = (UT)(*plower - *pupper) / (-incr) + 1; in __kmp_dist_for_static_init()
554 if (trip_count <= nteams) { in __kmp_dist_for_static_init()
561 if (team_id < trip_count && tid == 0) { in __kmp_dist_for_static_init()
568 *plastiter = (tid == 0 && team_id == trip_count - 1); in __kmp_dist_for_static_init()
572 UT chunkD = trip_count / nteams; in __kmp_dist_for_static_init()
573 UT extras = trip_count % nteams; in __kmp_dist_for_static_init()
581 (trip_count / nteams + ((trip_count % nteams) ? 1 : 0)) * incr; in __kmp_dist_for_static_init()
615 trip_count = *pupperDist - *plower + 1; in __kmp_dist_for_static_init()
617 trip_count = *plower - *pupperDist + 1; in __kmp_dist_for_static_init()
620 trip_count = (UT)(*pupperDist - *plower) / incr + 1; in __kmp_dist_for_static_init()
622 trip_count = (UT)(*plower - *pupperDist) / (-incr) + 1; in __kmp_dist_for_static_init()
624 KMP_DEBUG_ASSERT(trip_count); in __kmp_dist_for_static_init()
627 if (trip_count <= nth) { in __kmp_dist_for_static_init()
632 if (tid < trip_count) in __kmp_dist_for_static_init()
637 if (*plastiter != 0 && !(tid == trip_count - 1)) in __kmp_dist_for_static_init()
641 UT chunkL = trip_count / nth; in __kmp_dist_for_static_init()
642 UT extras = trip_count % nth; in __kmp_dist_for_static_init()
650 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr; in __kmp_dist_for_static_init()
688 if (*plastiter != 0 && !(tid == ((trip_count - 1) / (UT)chunk) % nth)) in __kmp_dist_for_static_init()
752 UT trip_count; in __kmp_team_static_init() local
805 trip_count = upper - lower + 1; in __kmp_team_static_init()
807 trip_count = lower - upper + 1; in __kmp_team_static_init()
810 trip_count = (UT)(upper - lower) / incr + 1; in __kmp_team_static_init()
812 trip_count = (UT)(lower - upper) / (-incr) + 1; in __kmp_team_static_init()
821 *p_last = (team_id == ((trip_count - 1) / (UT)chunk) % nteams); in __kmp_team_static_init()