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