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

Function zero_fix

common/math/vec3fa.h:167–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 __forceinline Vec3fa zero_fix(const Vec3fa& a) {
168 return blendv_ps(a.m128, _mm_set1_ps(min_rcp_input), _mm_cmplt_ps (abs(a).m128, _mm_set1_ps(min_rcp_input)));
169 }
170 __forceinline Vec3fa rcp_safe(const Vec3fa& a) {
171 return rcp(zero_fix(a));
172 }

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