From c1aa0fcf4fdb5e9da752437f314b1d903be10765 Mon Sep 17 00:00:00 2001 From: Geolm Date: Wed, 24 Jan 2024 08:50:46 -0500 Subject: [PATCH] updated comment --- extra/simd_approx_math.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/simd_approx_math.h b/extra/simd_approx_math.h index e97013a..e0795cb 100644 --- a/extra/simd_approx_math.h +++ b/extra/simd_approx_math.h @@ -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); @@ -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);