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