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