MCPcopy Create free account
hub / github.com/davisking/dlib / min

Function min

dlib/simd/simd4f.h:481–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

simd4fClass · 0.70

Tested by

no test coverage detected