From 8ba4243dfa6b5420a1e690cb0c6f4e0c6e5e9fdf Mon Sep 17 00:00:00 2001 From: Kishinami Date: Tue, 15 Sep 2020 17:56:32 +0900 Subject: [PATCH] Correct DSP document: Correct the size of the referenced sine table. --- Source/FastMathFunctions/arm_cos_f32.c | 2 +- Source/FastMathFunctions/arm_sin_f32.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/FastMathFunctions/arm_cos_f32.c b/Source/FastMathFunctions/arm_cos_f32.c index 0756c575..fa408c8b 100644 --- a/Source/FastMathFunctions/arm_cos_f32.c +++ b/Source/FastMathFunctions/arm_cos_f32.c @@ -44,7 +44,7 @@ [0 +0.9999] mapping to [0 2*pi). The fixed-point range is chosen so that a value of 2*pi wraps around to 0. - The implementation is based on table lookup using 256 values together with linear interpolation. + The implementation is based on table lookup using 512 values together with linear interpolation. The steps used are: -# Calculation of the nearest integer table index -# Compute the fractional portion (fract) of the table index. diff --git a/Source/FastMathFunctions/arm_sin_f32.c b/Source/FastMathFunctions/arm_sin_f32.c index 610cb2ef..0d23aa0f 100644 --- a/Source/FastMathFunctions/arm_sin_f32.c +++ b/Source/FastMathFunctions/arm_sin_f32.c @@ -44,7 +44,7 @@ [0 +0.9999] mapping to [0 2*pi). The fixed-point range is chosen so that a value of 2*pi wraps around to 0. - The implementation is based on table lookup using 256 values together with linear interpolation. + The implementation is based on table lookup using 512 values together with linear interpolation. The steps used are: -# Calculation of the nearest integer table index -# Compute the fractional portion (fract) of the table index.