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

Function abs

Source/astcenc_vecmathlib_sse_4.h:808–811  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

806 * @brief Return the absolute value of the float vector.
807 */
808ASTCENC_SIMD_INLINE vfloat4 abs(vfloat4 a)
809{
810 return vfloat4(_mm_max_ps(_mm_sub_ps(_mm_setzero_ps(), a.m), a.m));
811}
812
813/**
814 * @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