CMSIS-DSP: Added a ARM_MATH_FLOAT16 compilation option.
It is automatically enabled when MVE support is enabled.
diff --git a/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_f32.c b/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_f32.c
index c10b50a..ccae6d3 100644
--- a/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_f32.c
+++ b/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_f32.c
@@ -60,6 +60,7 @@
@return none
*/
+
#if defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE)
#include "arm_helium_utils.h"
diff --git a/CMSIS/DSP/Source/configDsp.cmake b/CMSIS/DSP/Source/configDsp.cmake
index b472be0..868132f 100644
--- a/CMSIS/DSP/Source/configDsp.cmake
+++ b/CMSIS/DSP/Source/configDsp.cmake
@@ -26,6 +26,10 @@
target_include_directories(${project} PRIVATE "${root}/CMSIS/DSP/ComputeLibrary/Include")
endif()
+if (FLOAT16)
+ target_compile_definitions(${project} PRIVATE ARM_MATH_FLOAT16)
+endif()
+
endfunction()
\ No newline at end of file