MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / abs

Function abs

Source/ThirdParty/basis_universal/encoder/cppspmd_sse.h:1435–1435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433
1434CPPSPMD_FORCE_INLINE vfloat sqrt(const vfloat& v) { return vfloat{ _mm_sqrt_ps(v.m_value) }; }
1435CPPSPMD_FORCE_INLINE vfloat abs(const vfloat& v) { return vfloat{ _mm_andnot_ps(_mm_set1_ps(-0.0f), v.m_value) }; }
1436CPPSPMD_FORCE_INLINE vfloat max(const vfloat& a, const vfloat& b) { return vfloat{ _mm_max_ps(a.m_value, b.m_value) }; }
1437CPPSPMD_FORCE_INLINE vfloat min(const vfloat& a, const vfloat& b) { return vfloat{ _mm_min_ps(a.m_value, b.m_value) }; }
1438

Callers 15

fmod_invFunction · 0.70
safe_divFunction · 0.70
exp2_estMethod · 0.70
recip_est1_pnMethod · 0.70
atan2_estMethod · 0.70
CPPSPMD_DECLFunction · 0.70
fmodFunction · 0.70
mod_epi32Function · 0.70
dequant_deadzoneMethod · 0.50
almostEqualUlpsFunction · 0.50

Calls 1

abs_epi32Function · 0.85

Tested by

no test coverage detected