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

Function abs

Source/astcenc_vecmathlib_rvv_n.h:765–768  ·  view source on GitHub ↗

* @brief Return the absolute value of the float vector. */

Source from the content-addressed store, hash-verified

763 * @brief Return the absolute value of the float vector.
764 */
765ASTCENC_SIMD_INLINE vfloat abs(vfloat a)
766{
767 return vfloat(__riscv_vfabs(a.m, vfloat::vl()));
768}
769
770/**
771 * @brief Return a float rounded to the nearest integer value.

Callers

nothing calls this directly

Calls 1

vfloatClass · 0.85

Tested by

no test coverage detected