CMSIS DSP library
Dependents: performance_timer Surfboard_ gps2rtty Capstone ... more
Legacy Warning
This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.
Diff: cmsis_dsp/FilteringFunctions/arm_correlate_fast_opt_q15.c
- Revision:
- 2:da51fb522205
- Parent:
- 1:fdd22bb7aa52
- Child:
- 3:7a284390b0ce
--- a/cmsis_dsp/FilteringFunctions/arm_correlate_fast_opt_q15.c Wed Nov 28 12:30:09 2012 +0000 +++ b/cmsis_dsp/FilteringFunctions/arm_correlate_fast_opt_q15.c Thu May 30 17:10:11 2013 +0100 @@ -2,12 +2,12 @@ * Copyright (C) 2010 ARM Limited. All rights reserved. * * $Date: 15. February 2012 -* $Revision: V1.1.0 +* $Revision: V1.1.0 * -* Project: CMSIS DSP Library -* Title: arm_correlate_fast_opt_q15.c +* Project: CMSIS DSP Library +* Title: arm_correlate_fast_opt_q15.c * -* Description: Fast Q15 Correlation. +* Description: Fast Q15 Correlation. * * Target Processor: Cortex-M4/Cortex-M3 * @@ -57,7 +57,7 @@ * * \par Restrictions * If the silicon does not support unaligned memory access enable the macro UNALIGNED_SUPPORT_DISABLE - * In this case input, output, scratch buffers should be aligned by 32-bit + * In this case input, output, scratch buffers should be aligned by 32-bit * * * <b>Scaling and Overflow Behavior:</b> @@ -99,7 +99,7 @@ q15_t a, b; -#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ +#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ /* The algorithm implementation is based on the lengths of the inputs. */ /* srcB is always made to slide across srcA. */ @@ -205,7 +205,7 @@ j--; } -#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ +#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ #ifndef UNALIGNED_SUPPORT_DISABLE @@ -247,7 +247,7 @@ j--; } -#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ +#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ /* Temporary pointer for scratch2 */ py = pIn2; @@ -321,25 +321,25 @@ #endif acc3 = __SMLADX(x3, y2, acc3); -#else +#else /* Read four samples from smaller buffer */ - a = *pIn2; - b = *(pIn2 + 1); + a = *pIn2; + b = *(pIn2 + 1); #ifndef ARM_MATH_BIG_ENDIAN y1 = __PKHBT(a, b, 16); #else y1 = __PKHBT(b, a, 16); #endif - - a = *(pIn2 + 2); - b = *(pIn2 + 3); + + a = *(pIn2 + 2); + b = *(pIn2 + 3); #ifndef ARM_MATH_BIG_ENDIAN y2 = __PKHBT(a, b, 16); #else y2 = __PKHBT(b, a, 16); -#endif +#endif acc0 = __SMLAD(x1, y1, acc0); @@ -353,8 +353,8 @@ acc1 = __SMLADX(x3, y1, acc1); - a = *pScr; - b = *(pScr + 1); + a = *pScr; + b = *(pScr + 1); #ifndef ARM_MATH_BIG_ENDIAN x1 = __PKHBT(a, b, 16); @@ -376,8 +376,8 @@ acc1 = __SMLADX(x3, y2, acc1); - a = *(pScr + 2); - b = *(pScr + 3); + a = *(pScr + 2); + b = *(pScr + 3); #ifndef ARM_MATH_BIG_ENDIAN x2 = __PKHBT(a, b, 16); @@ -393,7 +393,7 @@ acc3 = __SMLADX(x3, y2, acc3); -#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ +#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ pIn2 += 4u;