MCPcopy Index your code
hub / github.com/HandmadeMath/HandmadeMath / HMM_SqrtF

Function HMM_SqrtF

HandmadeMath.h:508–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506
507COVERAGE(HMM_SqrtF, 1)
508static inline float HMM_SqrtF(float Float)
509{
510 ASSERT_COVERED(HMM_SqrtF);
511
512 float Result;
513
514#ifdef HANDMADE_MATH__USE_SSE
515 __m128 In = _mm_set_ss(Float);
516 __m128 Out = _mm_sqrt_ss(In);
517 Result = _mm_cvtss_f32(Out);
518#else
519 Result = HMM_SQRTF(Float);
520#endif
521
522 return Result;
523}
524
525COVERAGE(HMM_InvSqrtF, 1)
526static inline float HMM_InvSqrtF(float Float)

Callers 7

HMM_InvSqrtFFunction · 0.85
HMM_LenV2Function · 0.85
HMM_LenV3Function · 0.85
HMM_LenV4Function · 0.85
HMM_M4ToQ_RHFunction · 0.85
HMM_M4ToQ_LHFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected