| 479 | // ---------------------------------------------------------------------------------------- |
| 480 | |
| 481 | inline simd4f min (const simd4f& lhs, const simd4f& rhs) |
| 482 | { |
| 483 | #ifdef DLIB_HAVE_SSE2 |
| 484 | return _mm_min_ps(lhs, rhs); |
| 485 | #elif defined(DLIB_HAVE_VSX) |
| 486 | return vec_min(lhs(), rhs()); |
| 487 | #elif defined(DLIB_HAVE_NEON) |
| 488 | return vminq_f32(lhs, rhs); |
| 489 | #else |
| 490 | return simd4f(std::min(lhs[0],rhs[0]), |
| 491 | std::min(lhs[1],rhs[1]), |
| 492 | std::min(lhs[2],rhs[2]), |
| 493 | std::min(lhs[3],rhs[3])); |
| 494 | #endif |
| 495 | } |
| 496 | |
| 497 | // ---------------------------------------------------------------------------------------- |
| 498 | |