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

Function max

Source/astcenc_vecmathlib_common_4.h:214–217  ·  view source on GitHub ↗

* @brief Return the max vector of a vector and a scalar. * * If either lane value is NaN, @c b will be returned for that lane. */

Source from the content-addressed store, hash-verified

212 * If either lane value is NaN, @c b will be returned for that lane.
213 */
214ASTCENC_SIMD_INLINE vfloat4 max(vfloat4 a, float b)
215{
216 return max(a, vfloat4(b));
217}
218
219/**
220 * @brief Return the clamped value between min and max.

Callers 3

clampFunction · 0.70
vint4_from_sizeFunction · 0.70
clampzoFunction · 0.70

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected