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

References

projects/openmp/runtime/src/kmp_sched.cpp
  458     if (incr == 0) {
  462     if (incr > 0 ? (*pupper < *plower) : (*plower < *pupper)) {
  485   if (incr == 1) {
  487   } else if (incr == -1) {
  489   } else if (incr > 0) {
  491     trip_count = (UT)(*pupper - *plower) / incr + 1;
  493     trip_count = (UT)(*plower - *pupper) / (-incr) + 1;
  505       *pupper = *pupperDist = *plower = *plower + team_id * incr;
  508       *plower = *pupper + incr; // compiler should skip loop body
  518           incr * (team_id * chunkD + (team_id < extras ? team_id : extras));
  519       *pupperDist = *plower + chunkD * incr - (team_id < extras ? 0 : incr);
  519       *pupperDist = *plower + chunkD * incr - (team_id < extras ? 0 : incr);
  524           (trip_count / nteams + ((trip_count % nteams) ? 1 : 0)) * incr;
  529       *pupperDist = *plower + chunk_inc_count - incr;
  531       if (incr > 0) {
  535           *plastiter = *plower <= upper && *pupperDist > upper - incr;
  546           *plastiter = *plower >= upper && *pupperDist < upper - incr;
  557     if (incr == 1) {
  559     } else if (incr == -1) {
  561     } else if (incr > 1) {
  563       trip_count = (UT)(*pupperDist - *plower) / incr + 1;
  565       trip_count = (UT)(*plower - *pupperDist) / (-incr) + 1;
  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);
  587           *pupper = *plower + chunkL * incr - (tid < extras ? 0 : incr);
  593               (trip_count / nth + ((trip_count % nth) ? 1 : 0)) * incr;
  598           *pupper = *plower + chunk_inc_count - incr;
  599           if (incr > 0) {
  604                   !(*plower <= upper && *pupper > upper - incr))
  613                   !(*plower >= upper && *pupper < upper - incr))
  626       span = chunk * incr;
  629       *pupper = *plower + span - incr;