Copy

Copies the contents of one vector into another vector.

Syntax

Intel IPP style:

IppStatus ippsqCopy_32f(const Ipp32f* pSrc, Ipp32f* pDst, Ipp32u len);

IppStatus ippsqCopyQ7_8s(const Ipp8s* pSrc, Ipp8s* pDst, Ipp32u len);

IppStatus ippsqCopyQ15_16s(const Ipp16s* pSrc, Ipp16s* pDst, Ipp32u len);

IppStatus ippsqCopyQ31_32s(const Ipp32s* pSrc, Ipp32s* pDst, Ipp32u len);

DSP style:

void ippsq_copy_f32(const float32_t* pSrc, float32_t* pDst, uint32_t len);

void ippsq_copy_q7(const q7_t* pSrc, q7_t* pDst, uint32_t len);

void ippsq_copy_q15(const q15_t* pSrc, q15_t* pDst, uint32_t len);

void ippsq_copy_q31(const q31_t* pSrc, q31_t* pDst, uint32_t len);

Include Files

ippsq.h

dsp.h

Parameters

pSrc

Pointer to the source vector.

pDst

Pointer to the destination vector.

len

Number of elements in the vector.

Description

This function copies the first len elements from the source vector pSrc into the destination vector pDst.

Note

This function performs only copying operations described above and is not intended to move data. If source and destination buffers overlap, function behavior is unpredictable.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when any of the specified pointers is NULL.
For more complete information about compiler optimizations, see our Optimization Notice.