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

Function FminZero

TSMath.h:224–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 inline float FminZero(const float& x)
225 {
226 #ifndef TERATHON_NO_SIMD
227
228 float result;
229
230 VecStoreX(VecMinScalar(VecLoadScalar(&x), VecFloatGetZero()), &result);
231 return (result);
232
233 #else
234
235 return ((x < 0.0F) ? x : 0.0F);
236
237 #endif
238 }
239
240 inline float FmaxZero(const float& x)
241 {

Callers

nothing calls this directly

Calls 4

VecStoreXFunction · 0.85
VecMinScalarFunction · 0.85
VecLoadScalarFunction · 0.85
VecFloatGetZeroFunction · 0.85

Tested by

no test coverage detected