Skip to content

Commit 6dfc615

Browse files
FFT corrections
1 parent 7d9e9a1 commit 6dfc615

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Ne10/CMSIS_NE10_fft.neonintrinsic.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
#include <arm_neon.h>
3838

3939
#define NE10_CPX_ADD_NEON_F32(Z,A,B) do { \
40-
Z.val[0] = A.val[0] + B.val[0]; \
41-
Z.val[1] = A.val[1] + B.val[1]; \
40+
Z.val[0] = vaddq_f32(A.val[0] , B.val[0]); \
41+
Z.val[1] = vaddq_f32(A.val[1] , B.val[1]); \
4242
} while (0);
4343

4444
#define NE10_CPX_SUB_NEON_F32(Z,A,B) do { \
45-
Z.val[0] = A.val[0] - B.val[0]; \
46-
Z.val[1] = A.val[1] - B.val[1]; \
45+
Z.val[0] = vsubq_f32(A.val[0] , B.val[0]); \
46+
Z.val[1] = vsubq_f32(A.val[1] , B.val[1]); \
4747
} while (0);
4848

4949
#define NE10_CPX_MUL_NEON_F32(Z,A,B) do { \

0 commit comments

Comments
 (0)