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

Function max

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

* @brief Return the min vector of two vectors. */

Source from the content-addressed store, hash-verified

619 * @brief Return the min vector of two vectors.
620 */
621ASTCENC_SIMD_INLINE vint4 max(vint4 a, vint4 b)
622{
623 return vint4(a.m[0] > b.m[0] ? a.m[0] : b.m[0],
624 a.m[1] > b.m[1] ? a.m[1] : b.m[1],
625 a.m[2] > b.m[2] ? a.m[2] : b.m[2],
626 a.m[3] > b.m[3] ? a.m[3] : b.m[3]);
627}
628
629/**
630 * @brief Return the horizontal minimum of a single vector.

Callers 1

hmaxFunction · 0.70

Calls 2

vint4Class · 0.70
vfloat4Class · 0.70

Tested by

no test coverage detected