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

Function hmin

Source/astcenc_vecmathlib_none_4.h:632–637  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

630 * @brief Return the horizontal minimum of a single vector.
631 */
632ASTCENC_SIMD_INLINE vint4 hmin(vint4 a)
633{
634 int b = std::min(a.m[0], a.m[1]);
635 int c = std::min(a.m[2], a.m[3]);
636 return vint4(std::min(b, c));
637}
638
639/**
640 * @brief Return the horizontal maximum of a single vector.

Callers

nothing calls this directly

Calls 3

minFunction · 0.70
vint4Class · 0.70
vfloat4Class · 0.70

Tested by

no test coverage detected