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

Function Fsgn

TSMath.h:64–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 inline float Fsgn(const float& x)
65 {
66 #ifndef TERATHON_NO_SIMD
67
68 float result;
69
70 VecStoreX(VecFsgn(VecLoadScalar(&x)), &result);
71 return (result);
72
73 #else
74
75 return ((x < 0.0F) ? -1.0F : ((x > 0.0F) ? 1.0F : 0.0F));
76
77 #endif
78 }
79
80 inline float Fnsgn(const float& x)
81 {

Callers

nothing calls this directly

Calls 3

VecStoreXFunction · 0.85
VecFsgnFunction · 0.85
VecLoadScalarFunction · 0.85

Tested by

no test coverage detected