MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / Fnabs

Function Fnabs

TSMath.h:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 inline float Fnabs(const float& x)
49 {
50 #ifndef TERATHON_NO_SIMD
51
52 float result;
53
54 VecStoreX(VecLoadScalar(&x) | VecFloatGetMinusZero(), &result);
55 return (result);
56
57 #else
58
59 return ((x > 0.0F) ? -x : x);
60
61 #endif
62 }
63
64 inline float Fsgn(const float& x)
65 {

Callers

nothing calls this directly

Calls 3

VecStoreXFunction · 0.85
VecLoadScalarFunction · 0.85
VecFloatGetMinusZeroFunction · 0.85

Tested by

no test coverage detected