MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / sseSin

Function sseSin

src/OpenColorIO/SSE.h:609–612  ·  view source on GitHub ↗

Sine function The function sin() is evaluated by phasing the argument, and then computing its cosine. It is based on the identity: sin(x) = cos(pi/2-x) - x the input angle Return the sine of the angle

Source from the content-addressed store, hash-verified

607// - x the input angle
608// Return the sine of the angle
609inline __m128 sseSin(const __m128 x)
610{
611 return sseCos(_mm_sub_ps(E_PI_2, x));
612}
613
614// Sine and Cosine function
615//

Callers 1

EvaluateSinFunction · 0.85

Calls 1

sseCosFunction · 0.85

Tested by 1

EvaluateSinFunction · 0.68