MCPcopy Create free account
hub / github.com/RenderKit/embree / ImRsqrt

Function ImRsqrt

tutorials/common/imgui/imgui_internal.h:441–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

ImInvLengthFunction · 0.85

Calls 4

_mm_cvtss_f32Function · 0.85
_mm_rsqrt_ssFunction · 0.85
_mm_set_ssFunction · 0.85
sqrtFunction · 0.50

Tested by

no test coverage detected