| 62 | } |
| 63 | |
| 64 | inline float Fsgn(const float& x) |
| 65 | { |
| 66 | #ifndef TERATHON_NO_SIMD |
| 67 | |
| 68 | float result; |
| 69 | |
| 70 | VecStoreX(VecFsgn(VecLoadScalar(&x)), &result); |
| 71 | return (result); |
| 72 | |
| 73 | #else |
| 74 | |
| 75 | return ((x < 0.0F) ? -1.0F : ((x > 0.0F) ? 1.0F : 0.0F)); |
| 76 | |
| 77 | #endif |
| 78 | } |
| 79 | |
| 80 | inline float Fnsgn(const float& x) |
| 81 | { |
nothing calls this directly
no test coverage detected