Lines Matching defs:max
23 #include <algorithm> // std::min, std::max
437 // think an entire expression should optimize away, e.g. min()/max().
529 // min/max match logic of std::min/std::max, which is important when NaN is involved.
531 SIT T max(const Vec<1,T>& x) { return x.val; }
533 SINT T max(const Vec<N,T>& x) { return std::max(max(x.lo), max(x.hi)); }
536 SINT Vec<N,T> max(const Vec<N,T>& x, const Vec<N,T>& y) { return naive_if_then_else(x < y, y, x); }
539 SINTU Vec<N,T> max(const Vec<N,T>& x, U y) { return max(x, Vec<N,T>(y)); }
541 SINTU Vec<N,T> max(U x, const Vec<N,T>& y) { return max(Vec<N,T>(x), y); }
546 return max(lo, min(x, hi));
791 // For a proof of max error, see the "SkVx_approx_acos" unit test.