Lines Matching refs:dstMin
463 void ComputeMulRange::operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMin, float& bMax) const
471 float scaledMin = dstMin/scale;
479 scaledMin = dstMin;
492 if (de::inBounds(aMin*(scale-(float)i*scaleStep), dstMin, dstMax) &&
493 de::inBounds(aMax*(scale-(float)i*scaleStep), dstMin, dstMax))
496 if (de::inBounds(aMin*(scale+(float)i*scaleStep), dstMin, dstMax) &&
497 de::inBounds(aMax*(scale+(float)i*scaleStep), dstMin, dstMax))
515 DE_ASSERT(de::inRange(aMin*bMin, dstMin-eps, dstMax+eps));
516 DE_ASSERT(de::inRange(aMin*bMax, dstMin-eps, dstMax+eps));
517 DE_ASSERT(de::inRange(aMax*bMin, dstMin-eps, dstMax+eps));
518 DE_ASSERT(de::inRange(aMax*bMax, dstMin-eps, dstMax+eps));
522 void ComputeMulRange::operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bMax) const
525 aMin = dstMin;
547 void ComputeAddRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
555 T rangeLen = dstMax-dstMin;
559 aMin = dstMin+aOffset;
568 DE_ASSERT(de::inRange(aMin+bMin, dstMin-eps, dstMax+eps));
569 DE_ASSERT(de::inRange(aMin+bMax, dstMin-eps, dstMax+eps));
570 DE_ASSERT(de::inRange(aMax+bMin, dstMin-eps, dstMax+eps));
571 DE_ASSERT(de::inRange(aMax+bMax, dstMin-eps, dstMax+eps));
597 void ComputeSubRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
605 T rangeLen = dstMax-dstMin;
609 aMin = dstMin+aOffset;
618 DE_ASSERT(de::inRange(aMin-bMin, dstMin-eps, dstMax+eps));
619 DE_ASSERT(de::inRange(aMin-bMax, dstMin-eps, dstMax+eps));
620 DE_ASSERT(de::inRange(aMax-bMin, dstMin-eps, dstMax+eps));
621 DE_ASSERT(de::inRange(aMax-bMax, dstMin-eps, dstMax+eps));
672 bool dstMin = valueRange.getMin().asBool();
678 ComputeValueRange()(state.getRandom(), dstMin, dstMax,
682 ComputeValueRange()(state.getRandom(), dstMin, dstMax,
737 void ComputeLessThanRange::operator () (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
750 if (dstMin == false && dstMax == true)
758 else if (dstMin == true && dstMax == true)
793 void ComputeLessOrEqualRange::operator () (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
806 if (dstMin == false && dstMax == true)
814 else if (dstMin == true && dstMax == true)
872 void computeEqualityValueRange (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax)
874 if (dstMin == false && dstMax == true)
876 else if (IsEqual && dstMin == false)
878 else if (!IsEqual && dstMin == true)
899 void computeEqualityValueRange<true, bool> (de::Random& rnd, bool dstMin, bool dstMax, bool& aMin, bool& aMax, bool& bMin, bool& bMax)
901 if (dstMin == false && dstMax == true)
908 else if (dstMin == false)
920 DE_ASSERT(dstMin == true && dstMax == true);
931 void computeEqualityValueRange<false, bool> (de::Random& rnd, bool dstMin, bool dstMax, bool& aMin, bool& aMax, bool& bMin, bool& bMax)
933 if (dstMin == false && dstMax == true)
934 computeEqualityValueRange<true>(rnd, dstMin, dstMax, aMin, aMax, bMin, bMax);
936 computeEqualityValueRange<true>(rnd, !dstMin, !dstMax, aMin, aMax, bMin, bMax);
970 bool dstMin = valueRange.getMin().asBool();
977 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,
981 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,
987 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,