perform cmp ? a : b
| 385 | |
| 386 | // perform cmp ? a : b |
| 387 | inline simd8f select(const simd8f_bool& cmp, const simd8f& a, const simd8f& b) |
| 388 | { |
| 389 | #ifdef DLIB_HAVE_AVX |
| 390 | return _mm256_blendv_ps(b,a,cmp); |
| 391 | #else |
| 392 | return simd8f(select(cmp.low(), a.low(), b.low()), |
| 393 | select(cmp.high(), a.high(), b.high())); |
| 394 | #endif |
| 395 | } |
| 396 | |
| 397 | // ---------------------------------------------------------------------------------------- |
| 398 |
no test coverage detected