1 /* ----------------------------------------------------------------------
2 * Copyright (C) 2010 ARM Limited. All rights reserved.
7 * Project: CMSIS DSP Library
10 * Description: Copies the elements of a Q7 vector.
12 * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
14 * Version 1.0.10 2011/7/15
15 * Big Endian support added and Merged M0 and M3/M4 Source code.
17 * Version 1.0.3 2010/11/29
18 * Re-organized the CMSIS folders and updated documentation.
20 * Version 1.0.2 2010/11/11
21 * Documentation updated.
23 * Version 1.0.1 2010/10/05
24 * Production release and review comments incorporated.
26 * Version 1.0.0 2010/09/20
27 * Production release and review comments incorporated.
29 * Version 0.0.7 2010/06/10
30 * Misra-C changes done
31 * -------------------------------------------------------------------- */
36 * @ingroup groupSupport
45 * @brief Copies the elements of a Q7 vector.
46 * @param[in] *pSrc points to input vector
47 * @param[out] *pDst points to output vector
48 * @param[in] blockSize length of the input vector
58 uint32_t blkCnt; /* loop counter */
62 /* Run the below code for Cortex-M4 and Cortex-M3 */
65 blkCnt = blockSize >> 2u;
67 /* First part of the processing with loop unrolling. Compute 4 outputs at a time.
68 ** a second loop below computes the remaining 1 to 3 samples. */
72 /* Copy and then store the results in the destination buffer */
73 /* 4 samples are copied and stored at a time using SIMD */
74 *__SIMD32(pDst)++ = *__SIMD32(pSrc)++;
76 /* Decrement the loop counter */
80 /* If the blockSize is not a multiple of 4, compute any remaining output samples here.
81 ** No loop unrolling is used. */
82 blkCnt = blockSize % 0x4u;
86 /* Run the below code for Cortex-M0 */
88 /* Loop over blockSize number of values */
91 #endif /* #ifndef ARM_MATH_CM0 */
97 /* Copy and then store the results in the destination buffer */
100 /* Decrement the loop counter */
106 * @} end of BasicCopy group