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

Function min

Source/astcenc_vecmathlib_none_4.h:610–616  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

608 * @brief Return the min vector of two vectors.
609 */
610ASTCENC_SIMD_INLINE vint4 min(vint4 a, vint4 b)
611{
612 return vint4(a.m[0] < b.m[0] ? a.m[0] : b.m[0],
613 a.m[1] < b.m[1] ? a.m[1] : b.m[1],
614 a.m[2] < b.m[2] ? a.m[2] : b.m[2],
615 a.m[3] < b.m[3] ? a.m[3] : b.m[3]);
616}
617
618/**
619 * @brief Return the min vector of two vectors.

Callers 1

hminFunction · 0.70

Calls 2

vint4Class · 0.70
vfloat4Class · 0.70

Tested by

no test coverage detected