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

Function FmaxZero

TSMath.h:240–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 }
239
240 inline float FmaxZero(const float& x)
241 {
242 #ifndef TERATHON_NO_SIMD
243
244 float result;
245
246 VecStoreX(VecMaxScalar(VecLoadScalar(&x), VecFloatGetZero()), &result);
247 return (result);
248
249 #else
250
251 return ((x < 0.0F) ? 0.0F : x);
252
253 #endif
254 }
255
256 inline float Saturate(const float& x)
257 {

Callers

nothing calls this directly

Calls 4

VecStoreXFunction · 0.85
VecMaxScalarFunction · 0.85
VecLoadScalarFunction · 0.85
VecFloatGetZeroFunction · 0.85

Tested by

no test coverage detected