Skip to content

Commit 74981bf

Browse files
Yuval Peressstephanosio
authored andcommitted
Update DSP library for additional platforms
The `tmp` variable was unused if `!__aarch64__` and it was causing a compile warning. Also, replace the compile definitions to include `__GNUC_PYTHON__` for all non ARM platforms. Signed-off-by: Yuval Peress <[email protected]>
1 parent 093de61 commit 74981bf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMSIS/DSP/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ endif()
99

1010
add_subdirectory(Source)
1111

12-
zephyr_compile_definitions_ifdef(CONFIG_ARCH_POSIX __GNUC_PYTHON__)
12+
zephyr_compile_definitions_ifndef(CONFIG_ARM __GNUC_PYTHON__)

CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_f32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ void arm_dot_prod_f32(
132132
f32x4_t vec1;
133133
f32x4_t vec2;
134134
f32x4_t accum = vdupq_n_f32(0);
135+
#if !__aarch64__
135136
f32x2_t tmp = vdup_n_f32(0);
137+
#endif
136138

137139
/* Compute 4 outputs at a time */
138140
blkCnt = blockSize >> 2U;

0 commit comments

Comments
 (0)