Set

Sets vector elements to a specified common value.

Syntax

Intel IPP style:

IppStatus ippsqSet_32f(Ipp32f val, Ipp32f* pDst, Ipp32u len);

IppStatus ippsqSetQ7_8s(Ipp8s val, Ipp8s* pDst, Ipp32u len);

IppStatus ippsqSetQ15_16s(Ipp16s val, Ipp16s* pDst, Ipp32u len);

IppStatus ippsqSetQ31_32s(Ipp32s val, Ipp32s* pDst, Ipp32u len);

DSP style:

void ippsq_fill_f32(float32_t val, float32_t* pDst, uint32_t len);

void ippsq_fill_q7(q7_t val, q7_t* pDst, uint32_t len);

void ippsq_fill_q15(q15_t val, q15_t* pDst, uint32_t len);

void ippsq_fill_q31(q31_t val, q31_t* pDst, uint32_t len);

Include Files

ippsq.h

dsp.h

Parameters

val

Value to set to the vector elements.

pDst

Pointer to the destination vector.

len

Number of elements in the vector.

Description

This function sets the first len elements of the pDst vector to the val value.

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.