Home | History | Annotate | Download | only in opt

Lines Matching defs:diff

738 // We retrieve the number of iterations using the following formula, diff /
739 // |step_value| where diff is calculated differently according to the
740 // |condition| and uses the |condition_value| and |init_value|. If diff /
744 int64_t diff = 0;
752 diff = condition_value - init_value;
754 // If the operation is a less then operation then the diff and step must
757 if ((diff < 0 && step_value > 0) || (diff > 0 && step_value < 0)) {
768 diff = init_value - condition_value;
770 // If the operation is a greater than operation then the diff and step
773 if ((diff < 0 && step_value < 0) || (diff > 0 && step_value > 0)) {
787 diff = init_value - (condition_value - 1);
789 // If the operation is a greater than operation then the diff and step
792 if ((diff > 0 && step_value > 0) || (diff < 0 && step_value < 0)) {
806 diff = (condition_value + 1) - init_value;
808 // If the operation is a less than operation then the diff and step must
811 if ((diff < 0 && step_value > 0) || (diff > 0 && step_value < 0)) {
826 diff = llabs(diff);
827 int64_t result = diff / step_value;
829 if (diff % step_value != 0) {