From 1e848805358ce00c9910b55f7bd786d347f87185 Mon Sep 17 00:00:00 2001 From: Peter Torelli Date: Tue, 13 Dec 2022 23:27:11 -0800 Subject: [PATCH] Converted atan2_coefs_q15 to `signed int` constants (#75) Removes conversion warning with `-pedantic` --- Source/FastMathFunctions/arm_atan2_q15.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Source/FastMathFunctions/arm_atan2_q15.c b/Source/FastMathFunctions/arm_atan2_q15.c index 513d2a76..c72f2066 100755 --- a/Source/FastMathFunctions/arm_atan2_q15.c +++ b/Source/FastMathFunctions/arm_atan2_q15.c @@ -43,16 +43,17 @@ atan for argument between in [0, 1.0] #define ATAN2_NB_COEFS_Q15 10 -static const q15_t atan2_coefs_q15[ATAN2_NB_COEFS_Q15]={0x0000 -,0x7fff -,0xffff -,0xd567 -,0xff70 -,0x1bad -,0xfd58 -,0xe9a9 -,0x1129 -,0xfbdb +static const q15_t atan2_coefs_q15[ATAN2_NB_COEFS_Q15]={ + 0, // 0x0000 + 32767, // 0x7fff + -1, // 0xffff +-10905, // 0xd567 + -144, // 0xff70 + 7085, // 0x1bad + -680, // 0xfd58 + -5719, // 0xe9a9 + 4393, // 0x1129 + -1061 // 0xfbdb }; __STATIC_FORCEINLINE q15_t arm_atan_limited_q15(q15_t x)