Skip to content

Commit

Permalink
updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolm committed Jan 24, 2024
1 parent 49289e5 commit c1aa0fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extra/simd_approx_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static simd_vector simd_approx_exp(simd_vector x);


//----------------------------------------------------------------------------------------------------------------------
// from hlslpp
// range reduction from hlslpp, polynomial computed with lolremez
static inline simd_vector simd_approx_sin(simd_vector x)
{
simd_vector invtau = simd_splat(1.f/SIMD_MATH_TAU);
Expand All @@ -58,7 +58,6 @@ static inline simd_vector simd_approx_sin(simd_vector x)

simd_vector x_squared = simd_mul(x, x);
simd_vector result = simd_polynomial4(x_squared, (float[]){2.6000548e-6f, -1.9806615e-4f, 8.3330173e-3f, -1.6666657e-1f});

result = simd_mul(result, x_squared);
result = simd_fmad(result, x, x);

Expand Down

0 comments on commit c1aa0fc

Please sign in to comment.