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

Function Fmin

TSMath.h:128–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 inline float Fmin(const float& x, const float& y)
129 {
130 #ifndef TERATHON_NO_SIMD
131
132 float result;
133
134 VecStoreX(VecMinScalar(VecLoadScalar(&x), VecLoadScalar(&y)), &result);
135 return (result);
136
137 #else
138
139 return ((x < y) ? x : y);
140
141 #endif
142 }
143
144 inline float Fmin(const float& x, const float& y, const float& z)
145 {

Callers

nothing calls this directly

Calls 3

VecStoreXFunction · 0.85
VecMinScalarFunction · 0.85
VecLoadScalarFunction · 0.85

Tested by

no test coverage detected