MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / zero_fix

Function zero_fix

third-party/embreeSrc/common/math/vec2fa.h:151–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 __forceinline Vec2fa zero_fix(const Vec2fa& a) {
152 return blendv_ps(a, _mm_set1_ps(min_rcp_input), _mm_cmplt_ps (abs(a).m128, _mm_set1_ps(min_rcp_input)));
153 }
154 __forceinline Vec2fa rcp_safe(const Vec2fa& a) {
155 return rcp(zero_fix(a));
156 }

Callers 1

rcp_safeFunction · 0.70

Calls 4

blendv_psFunction · 0.85
_mm_set1_psFunction · 0.85
_mm_cmplt_psFunction · 0.85
absFunction · 0.70

Tested by

no test coverage detected