From 96d6da4e252b06dcfdc041e7df23e86161c33007 Mon Sep 17 00:00:00 2001 From: rihab kouki Date: Tue, 28 Jul 2020 11:24:49 +0100 Subject: Official ARM version: v5.6.0 --- DSP/interpol.cmake | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 DSP/interpol.cmake (limited to 'DSP/interpol.cmake') diff --git a/DSP/interpol.cmake b/DSP/interpol.cmake new file mode 100644 index 0000000..80282cf --- /dev/null +++ b/DSP/interpol.cmake @@ -0,0 +1,43 @@ +function(interpol PROJECT) + +if (CONFIGTABLE AND ARM_COS_F32) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_F32) +endif() + +if (CONFIGTABLE AND ARM_COS_Q31) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q31) +endif() + +if (CONFIGTABLE AND ARM_COS_Q15) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q15) +endif() + +if (CONFIGTABLE AND ARM_SIN_F32) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_F32) +endif() + +if (CONFIGTABLE AND ARM_SIN_Q31) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q31) +endif() + +if (CONFIGTABLE AND ARM_SIN_Q15) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q15) +endif() + +if (CONFIGTABLE AND ARM_SIN_COS_F32) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_F32) +endif() + +if (CONFIGTABLE AND ARM_SIN_COS_Q31) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q31) +endif() + +if (CONFIGTABLE AND ARM_LMS_NORM_Q31) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_RECIP_Q31) +endif() + +if (CONFIGTABLE AND ARM_LMS_NORM_Q15) + target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_RECIP_Q15) +endif() + +endfunction() \ No newline at end of file -- cgit