Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 3/22/2024
Public
Document Table of Contents

DivCRev

Divides a constant value by each element of a vector.

Syntax

IppStatus ippsDivCRev_16u(const Ipp16u* pSrc, Ipp16u val, Ipp16u* pDst, int len);

IppStatus ippsDivCRev_32f(const Ipp32f* pSrc, Ipp32f val, Ipp32f* pDst, int len);

IppStatus ippsDivCRev_16u_I(Ipp16u val, Ipp16u* pSrcDst, int len);

IppStatus ippsDivCRev_32f_I(Ipp32f val, Ipp32f* pSrcDst, int len);

Include Files

ipps.h

Domain Dependencies

Headers: ippcore.h, ippvm.h

Libraries: ippcore.lib, ippvm.lib

Parameters

val

Constant value used as a dividend in the operation.

pSrc

Pointer to the source vector whose elements are used as divisors.

pDst

Pointer to the destination vector.

pSrcDst

Pointer to the source and destination vector for in-place operation.

len

Number of elements in the vector

Description

This function divides the constant value val by each element of the vector pSrc and stores the results in pDst.

The in-place flavors of ippsDivC divide the constant value val by each element of the vector pSrcDst and store the results in pSrcDst.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrc, pDst, orpSrcDst pointer is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to 0.

ippStsDivByZeroErr

Indicates an error when any element of the vector pSource is equal to 0.