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

Function Fmax

TSMath.h:176–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 }
175
176 inline float Fmax(const float& x, const float& y)
177 {
178 #ifndef TERATHON_NO_SIMD
179
180 float result;
181
182 VecStoreX(VecMaxScalar(VecLoadScalar(&x), VecLoadScalar(&y)), &result);
183 return (result);
184
185 #else
186
187 return ((x < y) ? y : x);
188
189 #endif
190 }
191
192 inline float Fmax(const float& x, const float& y, const float& z)
193 {

Callers

nothing calls this directly

Calls 3

VecStoreXFunction · 0.85
VecMaxScalarFunction · 0.85
VecLoadScalarFunction · 0.85

Tested by

no test coverage detected