| 439 | static inline double ImSign(double x) { return (x < 0.0) ? -1.0 : (x > 0.0) ? 1.0 : 0.0; } |
| 440 | #ifdef IMGUI_ENABLE_SSE |
| 441 | static inline float ImRsqrt(float x) { return _mm_cvtss_f32(_mm_rsqrt_ss(_mm_set_ss(x))); } |
| 442 | #else |
| 443 | static inline float ImRsqrt(float x) { return 1.0f / sqrtf(x); } |
| 444 | #endif |
no test coverage detected