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

Function dnormalize

third-party/embreeSrc/common/math/vec3fa.h:357–362  ·  view source on GitHub ↗

! differentiated normalization */

Source from the content-addressed store, hash-verified

355
356 /*! differentiated normalization */
357 __forceinline Vec3fa dnormalize(const Vec3fa& p, const Vec3fa& dp)
358 {
359 const float pp = dot(p,p);
360 const float pdp = dot(p,dp);
361 return (pp*dp-pdp*p)*rcp(pp)*rsqrt(pp);
362 }
363
364 ////////////////////////////////////////////////////////////////////////////////
365 /// Select

Callers

nothing calls this directly

Calls 3

dotFunction · 0.70
rcpFunction · 0.70
rsqrtFunction · 0.70

Tested by

no test coverage detected