commit | 132e6482805afbc3e47575a64caf58d7c3aee39a | [log] [tgz] |
---|---|---|
author | Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> | Fri Nov 19 14:19:47 2021 |
committer | Liam Girdwood <lgirdwood@gmail.com> | Sun Nov 21 22:41:43 2021 |
tree | e956db486e4da0d14116ac8b869bc2f958a755f8 | |
parent | 2c208b52fbbcefdf4e3ac62540b5941523037741 [diff] |
Math: Build library functions if enabled from Kconfig This patch adds src/math/Kconfig with items CORDIC_TRIGONOMETRY_FIXED, NUMBERS_GCD, NUMBERS_NORM, NUMBERS_VECTOR_FIND, MATH_DECIBELS, MATH_FFT, MATH_FIR, and MATH_IIR_DF2T. Configuration FIR and FFT were previously in src/audio/Kconfig but they were moved to new math location for simplicity. The build of trig.c was simplified by remove of unused UNIT_CORDIC_TEST and CONFIG_CORDIC_TRIGONOMETRY_FIXED. All but build details of numbers.c are handled by src/math/CMakeList.txt if(CONFIG_X) additions. There was need to add "-DCONFIG_NUMBERS_x" into target_compile_definitions() in test/cmocka/CMakeLists.txt because the platforms those drop most features e.g. BYT would fail in test case build. Tone generator build is disabled for all platforms. It avoids select of triginometric functions and saves RAM. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
See docs
See unit testing documentation
TODO: Add additional notes about how to deploy this on a live system
See Contributing to the Project
This project is licensed under the BSD Clause 3 - see the LICENCE file for details