Visible to Intel only — GUID: GUID-BE990B13-1D33-4688-A32B-B2B477F8F5AF
Visible to Intel only — GUID: GUID-BE990B13-1D33-4688-A32B-B2B477F8F5AF
Zero
Initializes a vector to zero.
Syntax
IppStatus ippsZero_8u(Ipp8u* pDst, int len);
IppStatus ippsZero_16s(Ipp16s* pDst, int len);
IppStatus ippsZero_32s(Ipp32s* pDst, int len);
IppStatus ippsZero_32f(Ipp32f* pDst, int len);
IppStatus ippsZero_64s(Ipp64s* pDst, int len);
IppStatus ippsZero_64f(Ipp64f* pDst, int len);
IppStatus ippsZero_16sc(Ipp16sc* pDst, int len);
IppStatus ippsZero_32sc(Ipp32sc* pDst, int len);
IppStatus ippsZero_32fc(Ipp32fc* pDst, int len);
IppStatus ippsZero_64sc(Ipp64sc* pDst, int len);
IppStatus ippsZero_64fc(Ipp64fc* pDst, int len);
Include Files
ipps.h
Domain Dependencies
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
Parameters
pDst |
Pointer to the vector to be initialized to zero. |
len |
Number of elements to initialize. |
Description
This function initializes the first len elements of the vector pDst to zero. If pDst is a complex vector, both real and imaginary parts are zeroed.
Return Values
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pDst pointer is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to zero. |
Example
The code example below shows how to use the ippsZero function.
IppStatus zero(void) { char src[] = "zero"; return ippsZero_8u(src, strlen(src)); }