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

Function abs

Source/astcenc_vecmathlib_none_4.h:864–870  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

862 * @brief Return the absolute value of the float vector.
863 */
864ASTCENC_SIMD_INLINE vfloat4 abs(vfloat4 a)
865{
866 return vfloat4(std::abs(a.m[0]),
867 std::abs(a.m[1]),
868 std::abs(a.m[2]),
869 std::abs(a.m[3]));
870}
871
872/**
873 * @brief Return a float rounded to the nearest integer value.

Callers

nothing calls this directly

Calls 1

vfloat4Class · 0.70

Tested by

no test coverage detected