diff options
Diffstat (limited to 'DSP/interpol.cmake')
-rw-r--r-- | DSP/interpol.cmake | 43 |
1 files changed, 43 insertions, 0 deletions
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 |