Lines Matching defs:min
23 #include <algorithm> // std::min, std::max
142 memcpy(vals, xs.begin(), std::min(xs.size(), (size_t)N)*sizeof(T));
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.
530 SIT T min(const Vec<1,T>& x) { return x.val; }
532 SINT T min(const Vec<N,T>& x) { return std::min(min(x.lo), min(x.hi)); }
535 SINT Vec<N,T> min(const Vec<N,T>& x, const Vec<N,T>& y) { return naive_if_then_else(y < x, y, x); }
538 SINTU Vec<N,T> min(const Vec<N,T>& x, U y) { return min(x, Vec<N,T>(y)); }
540 SINTU Vec<N,T> min(U x, const Vec<N,T>& y) { return min(Vec<N,T>(x), y); }
546 return max(lo, min(x, hi));