MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / hmin

Function hmin

Source/astcenc_vecmathlib_sse_4.h:613–618  ·  view source on GitHub ↗

* @brief Return the horizontal minimum of a vector. */

Source from the content-addressed store, hash-verified

611 * @brief Return the horizontal minimum of a vector.
612 */
613ASTCENC_SIMD_INLINE vint4 hmin(vint4 a)
614{
615 a = min(a, vint4(_mm_shuffle_epi32(a.m, _MM_SHUFFLE(2, 3, 0, 1))));
616 a = min(a, vint4(_mm_shuffle_epi32(a.m, _MM_SHUFFLE(1, 0, 3, 2))));
617 return a;
618}
619
620/*
621 * @brief Return the horizontal maximum of a vector.

Callers

nothing calls this directly

Calls 3

minFunction · 0.70
vint4Class · 0.70
vfloat4Class · 0.70

Tested by

no test coverage detected