Lines Matching defs:cond
438 SINT Vec<N,T> naive_if_then_else(const Vec<N,M<T>>& cond, const Vec<N,T>& t, const Vec<N,T>& e) {
439 return bit_pun<Vec<N,T>>(( cond & bit_pun<Vec<N, M<T>>>(t)) |
440 (~cond & bit_pun<Vec<N, M<T>>>(e)) );
443 SIT Vec<1,T> if_then_else(const Vec<1,M<T>>& cond, const Vec<1,T>& t, const Vec<1,T>& e) {
445 return bit_pun<Vec<1,T>>(( cond & bit_pun<Vec<1, M<T>>>(t)) |
446 (~cond & bit_pun<Vec<1, M<T>>>(e)) );
448 SINT Vec<N,T> if_then_else(const Vec<N,M<T>>& cond, const Vec<N,T>& t, const Vec<N,T>& e) {
455 unchecked_bit_pun<__m256i>(cond)));
462 unchecked_bit_pun<__m128i>(cond)));
467 return unchecked_bit_pun<Vec<N,T>>(vbslq_u8(unchecked_bit_pun<uint8x16_t>(cond),
474 return join(if_then_else(cond.lo, t.lo, e.lo),
475 if_then_else(cond.hi, t.hi, e.hi));
478 return naive_if_then_else(cond, t, e);