reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/openmp/runtime/src/kmp_sched.cpp
  462     if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
  462     if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
  486     trip_count = *pupper - *plower + 1;
  488     trip_count = *plower - *pupper + 1;
  491     trip_count = (UT)(*pupper - *plower) / incr + 1;
  493     trip_count = (UT)(*plower - *pupper) / (-incr) + 1;
  496   *pstride = *pupper - *plower; // just in case (can be unused)
  505       *pupper = *pupperDist = *plower = *plower + team_id * incr;
  505       *pupper = *pupperDist = *plower = *plower + team_id * incr;
  508       *plower = *pupper + incr; // compiler should skip loop body
  517       *plower +=
  519       *pupperDist = *plower + chunkD * incr - (team_id < extras ? 0 : incr);
  528       *plower += team_id * chunk_inc_count;
  529       *pupperDist = *plower + chunk_inc_count - incr;
  532         if (*pupperDist < *plower)
  535           *plastiter = *plower <= upper && *pupperDist > upper - incr;
  538         if (*plower > *pupperDist) {
  543         if (*pupperDist > *plower)
  546           *plastiter = *plower >= upper && *pupperDist < upper - incr;
  549         if (*plower < *pupperDist) {
  558       trip_count = *pupperDist - *plower + 1;
  560       trip_count = *plower - *pupperDist + 1;
  563       trip_count = (UT)(*pupperDist - *plower) / incr + 1;
  565       trip_count = (UT)(*plower - *pupperDist) / (-incr) + 1;
  576           *pupper = *plower = *plower + tid * incr;
  576           *pupper = *plower = *plower + tid * incr;
  578           *plower = *pupper + incr; // no iterations available
  586           *plower += incr * (tid * chunkL + (tid < extras ? tid : extras));
  587           *pupper = *plower + chunkL * incr - (tid < extras ? 0 : incr);
  597           *plower += tid * chunk_inc_count;
  598           *pupper = *plower + chunk_inc_count - incr;
  600             if (*pupper < *plower)
  604                   !(*plower <= upper && *pupper > upper - incr))
  609             if (*pupper > *plower)
  613                   !(*plower >= upper && *pupper < upper - incr))
  628       *plower = *plower + (span * tid);
  628       *plower = *plower + (span * tid);
  629       *pupper = *plower + span - incr;