Move
Move
Moves the contents of one vector to another vector.
Syntax
IppStatus ippsMove_8u(const Ipp8u*
pSrc
, Ipp8u*
pDst
, int
len
);
IppStatus ippsMove_16s(const Ipp16s*
pSrc
, Ipp16s*
pDst
, int
len
);
IppStatus ippsMove_32s(const Ipp32s*
pSrc
, Ipp32s*
pDst
, int
len
);
IppStatus ippsMove_32f(const Ipp32f*
pSrc
, Ipp32f*
pDst
, int
len
);
IppStatus ippsMove_64f(const Ipp64f*
pSrc
, Ipp64f*
pDst
, int
len
);
IppStatus ippsMove_64s(const Ipp64s*
pSrc
, Ipp64s*
pDst
, int
len
);
IppStatus ippsMove_16sc(const Ipp16sc*
pSrc
, Ipp16sc*
pDst
, int
len
);
IppStatus ippsMove_32sc(const Ipp32sc*
pSrc
, Ipp32sc*
pDst
, int
len
);
IppStatus ippsMove_32fc(const Ipp32fc*
pSrc
, Ipp32fc*
pDst
, int
len
);
IppStatus ippsMove_64sc(const Ipp64sc*
pSrc
, Ipp64sc*
pDst
, int
len
);
IppStatus ippsMove_64fc(const Ipp64fc*
pSrc
, Ipp64fc*
pDst
, int
len
);
Include Files
ipps.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
Libraries:
ippcore.lib
,
ippvm.lib
Parameters
- pSrc
- Pointer to the source vector used to initializepDst.
- pDst
- Pointer to the destination vector to be initialized.
- len
- Number of elements to move.
Description
This function moves the first
len
elements from a source vector pSrc
into the destination vector pDst
. If some parts of the source and destination vectors are overlapping, then the function ensures that the original source bytes in the overlapping parts are moved (it means that they are copied before being overwritten) to the appropriate parts of the destination vector.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsNullPtrErr
- Indicates an error when thepSrcorpDstpointer isNULL.
- ippStsSizeErr
- Indicates an error whenlenis less than or equal to zero.
Example
Ipp8u pSrc[10] = { "123456789" }; Ipp8u pDst[6]; int len = 6; IppStatus status; status = ippsMove_8u ( pSrc, pDst, len ); if(ippStsNoErr != status) printf("Intel(R) IPP Error: %s",ippGetStatusString(status));
Result:
pSrc = 123456789 pDst = 123456