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

Function hmax

Source/astcenc_vecmathlib_sse_4.h:623–628  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

621 * @brief Return the horizontal maximum of a vector.
622 */
623ASTCENC_SIMD_INLINE vint4 hmax(vint4 a)
624{
625 a = max(a, vint4(_mm_shuffle_epi32(a.m, _MM_SHUFFLE(2, 3, 0, 1))));
626 a = max(a, vint4(_mm_shuffle_epi32(a.m, _MM_SHUFFLE(1, 0, 3, 2))));
627 return a;
628}
629
630/**
631 * @brief Store a vector to a 16B aligned memory address.

Callers

nothing calls this directly

Calls 3

maxFunction · 0.70
vint4Class · 0.70
vfloat4Class · 0.70

Tested by

no test coverage detected