Converted atan2_coefs_q15 to `signed int` constants (#75)

Removes conversion warning with `-pedantic`
pull/77/head
Peter Torelli 3 years ago committed by GitHub
parent 258f31c5e6
commit 1e84880535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,16 +43,17 @@ atan for argument between in [0, 1.0]
#define ATAN2_NB_COEFS_Q15 10 #define ATAN2_NB_COEFS_Q15 10
static const q15_t atan2_coefs_q15[ATAN2_NB_COEFS_Q15]={0x0000 static const q15_t atan2_coefs_q15[ATAN2_NB_COEFS_Q15]={
,0x7fff 0, // 0x0000
,0xffff 32767, // 0x7fff
,0xd567 -1, // 0xffff
,0xff70 -10905, // 0xd567
,0x1bad -144, // 0xff70
,0xfd58 7085, // 0x1bad
,0xe9a9 -680, // 0xfd58
,0x1129 -5719, // 0xe9a9
,0xfbdb 4393, // 0x1129
-1061 // 0xfbdb
}; };
__STATIC_FORCEINLINE q15_t arm_atan_limited_q15(q15_t x) __STATIC_FORCEINLINE q15_t arm_atan_limited_q15(q15_t x)

Loading…
Cancel
Save