Lines Matching refs:trip_count
92 UT trip_count; in __kmp_for_static_init() local
275 trip_count = *pupper - *plower + 1; in __kmp_for_static_init()
277 trip_count = *plower - *pupper + 1; in __kmp_for_static_init()
280 trip_count = (UT)(*pupper - *plower) / incr + 1; in __kmp_for_static_init()
282 trip_count = (UT)(*plower - *pupper) / (-incr) + 1; in __kmp_for_static_init()
287 KMP_COUNT_VALUE(OMP_loop_static_total_iterations, trip_count); in __kmp_for_static_init()
293 if (trip_count == 0 && *pupper != *plower) { in __kmp_for_static_init()
302 if (trip_count < nth) { in __kmp_for_static_init()
307 if (tid < trip_count) { in __kmp_for_static_init()
314 *plastiter = (tid == trip_count - 1); in __kmp_for_static_init()
317 UT small_chunk = trip_count / nth; in __kmp_for_static_init()
318 UT extras = trip_count % nth; in __kmp_for_static_init()
325 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr; in __kmp_for_static_init()
350 *pstride = trip_count; in __kmp_for_static_init()
358 else if ((UT)chunk > trip_count) in __kmp_for_static_init()
359 chunk = trip_count; in __kmp_for_static_init()
360 nchunks = (trip_count) / (UT)chunk + (trip_count % (UT)chunk ? 1 : 0); in __kmp_for_static_init()
382 UT span = (trip_count + nth - 1) / nth; in __kmp_for_static_init()
397 *plastiter = (tid == ((trip_count - 1) / (UT)chunk)); in __kmp_for_static_init()
415 cur_chunk = trip_count / nth + ((trip_count % nth) ? 1 : 0); in __kmp_for_static_init()
418 __kmp_itt_metadata_loop(loc, 0, trip_count, cur_chunk); in __kmp_for_static_init()
439 &(task_info->task_data), trip_count, codeptr); in __kmp_for_static_init()
486 UT trip_count; in __kmp_dist_for_static_init() local
538 trip_count = *pupper - *plower + 1; in __kmp_dist_for_static_init()
540 trip_count = *plower - *pupper + 1; in __kmp_dist_for_static_init()
543 trip_count = (UT)(*pupper - *plower) / incr + 1; in __kmp_dist_for_static_init()
545 trip_count = (UT)(*plower - *pupper) / (-incr) + 1; in __kmp_dist_for_static_init()
549 if (trip_count <= nteams) { in __kmp_dist_for_static_init()
556 if (team_id < trip_count && tid == 0) { in __kmp_dist_for_static_init()
563 *plastiter = (tid == 0 && team_id == trip_count - 1); in __kmp_dist_for_static_init()
567 UT chunkD = trip_count / nteams; in __kmp_dist_for_static_init()
568 UT extras = trip_count % nteams; in __kmp_dist_for_static_init()
576 (trip_count / nteams + ((trip_count % nteams) ? 1 : 0)) * incr; in __kmp_dist_for_static_init()
610 trip_count = *pupperDist - *plower + 1; in __kmp_dist_for_static_init()
612 trip_count = *plower - *pupperDist + 1; in __kmp_dist_for_static_init()
615 trip_count = (UT)(*pupperDist - *plower) / incr + 1; in __kmp_dist_for_static_init()
617 trip_count = (UT)(*plower - *pupperDist) / (-incr) + 1; in __kmp_dist_for_static_init()
619 KMP_DEBUG_ASSERT(trip_count); in __kmp_dist_for_static_init()
622 if (trip_count <= nth) { in __kmp_dist_for_static_init()
627 if (tid < trip_count) in __kmp_dist_for_static_init()
632 if (*plastiter != 0 && !(tid == trip_count - 1)) in __kmp_dist_for_static_init()
636 UT chunkL = trip_count / nth; in __kmp_dist_for_static_init()
637 UT extras = trip_count % nth; in __kmp_dist_for_static_init()
645 (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr; in __kmp_dist_for_static_init()
683 if (*plastiter != 0 && !(tid == ((trip_count - 1) / (UT)chunk) % nth)) in __kmp_dist_for_static_init()
747 UT trip_count; in __kmp_team_static_init() local
800 trip_count = upper - lower + 1; in __kmp_team_static_init()
802 trip_count = lower - upper + 1; in __kmp_team_static_init()
805 trip_count = (UT)(upper - lower) / incr + 1; in __kmp_team_static_init()
807 trip_count = (UT)(lower - upper) / (-incr) + 1; in __kmp_team_static_init()
816 *p_last = (team_id == ((trip_count - 1) / (UT)chunk) % nteams); in __kmp_team_static_init()