MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / hmax

Function hmax

external/astc-encoder/Source/astcenc_vecmathlib_none_4.h:642–647  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

640 * @brief Return the horizontal maximum of a single vector.
641 */
642ASTCENC_SIMD_INLINE vint4 hmax(vint4 a)
643{
644 int b = std::max(a.m[0], a.m[1]);
645 int c = std::max(a.m[2], a.m[3]);
646 return vint4(std::max(b, c));
647}
648
649/**
650 * @brief Store a vector to an 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