| 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 | { |
nothing calls this directly
no test coverage detected