| 46 | } |
| 47 | |
| 48 | inline float Fnabs(const float& x) |
| 49 | { |
| 50 | #ifndef TERATHON_NO_SIMD |
| 51 | |
| 52 | float result; |
| 53 | |
| 54 | VecStoreX(VecLoadScalar(&x) | VecFloatGetMinusZero(), &result); |
| 55 | return (result); |
| 56 | |
| 57 | #else |
| 58 | |
| 59 | return ((x > 0.0F) ? -x : x); |
| 60 | |
| 61 | #endif |
| 62 | } |
| 63 | |
| 64 | inline float Fsgn(const float& x) |
| 65 | { |
nothing calls this directly
no test coverage detected