diff options
author | jaseg <git@jaseg.de> | 2020-12-21 16:22:11 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2020-12-21 16:22:11 +0100 |
commit | d8b6d18d2fefee381eb6a26334a13e94126b6d8e (patch) | |
tree | ab3a005e80c7b3d5b5d727ec04a2cbeefc3d51e6 /fw/hid-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/ComplexMathFunctions/cmplx_mag.c | |
parent | 26f5fefac6f15db1c8c81fb78a919d35211695c4 (diff) | |
download | minikbd-d8b6d18d2fefee381eb6a26334a13e94126b6d8e.tar.gz minikbd-d8b6d18d2fefee381eb6a26334a13e94126b6d8e.tar.bz2 minikbd-d8b6d18d2fefee381eb6a26334a13e94126b6d8e.zip |
Remove obsolete template code from fw
Diffstat (limited to 'fw/hid-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/ComplexMathFunctions/cmplx_mag.c')
-rw-r--r-- | fw/hid-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/ComplexMathFunctions/cmplx_mag.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/fw/hid-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/ComplexMathFunctions/cmplx_mag.c b/fw/hid-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/ComplexMathFunctions/cmplx_mag.c deleted file mode 100644 index b5ac28d..0000000 --- a/fw/hid-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/ComplexMathFunctions/cmplx_mag.c +++ /dev/null @@ -1,49 +0,0 @@ -#include "ref.h"
-
-void ref_cmplx_mag_f32(
- float32_t * pSrc,
- float32_t * pDst,
- uint32_t numSamples)
-{
- uint32_t i;
-
- for(i=0;i<numSamples*2;i+=2)
- {
- *pDst++ = sqrtf(pSrc[i] * pSrc[i] + pSrc[i+1] * pSrc[i+1]);
- }
-}
-
-void ref_cmplx_mag_q31(
- q31_t * pSrc,
- q31_t * pDst,
- uint32_t numSamples)
-{
- uint32_t i;
- q31_t acc0,acc1,out;
-
- for(i=0;i<numSamples*2;i+=2)
- {
- acc0 = (q31_t)(((q63_t)pSrc[i] * pSrc[i]) >> 33);
- acc1 = (q31_t)(((q63_t)pSrc[i+1] * pSrc[i+1]) >> 33);
- out = acc0 + acc1;
- *pDst++ = (q31_t)(sqrtf((float)out / 2147483648.0f) * 2147483648.0f);
- }
-}
-
-void ref_cmplx_mag_q15(
- q15_t * pSrc,
- q15_t * pDst,
- uint32_t numSamples)
-{
- uint32_t i;
- q31_t acc0,acc1;
- q15_t out;
-
- for(i=0;i<numSamples*2;i+=2)
- {
- acc0 = pSrc[i] * pSrc[i];
- acc1 = pSrc[i+1] * pSrc[i+1];
- out = (q15_t) (((q63_t) acc0 + acc1) >> 17);
- *pDst++ = (q15_t)(sqrtf((float)out / 32768.0f) * 32768.0f);
- }
-}
|