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

Function hmax

Source/astcenc_vecmathlib_rvv_n.h:508–512  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

506 * @brief Return the horizontal maximum of a vector.
507 */
508ASTCENC_SIMD_INLINE vint hmax(vint a)
509{
510 a.m = __riscv_vredmax(a.m, a.m, vint::vl());
511 return vint(__riscv_vrgather(a.m, 0, vint::vl()));
512}
513
514/**
515 * @brief Return the horizontal maximum of a vector.

Callers

nothing calls this directly

Calls 2

vintClass · 0.85
vfloatClass · 0.85

Tested by

no test coverage detected