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

ID 790148
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

AndC

Computes the bitwise AND of a scalar value and each element of a vector.

Syntax

IppStatus ippsAndC_8u(const Ipp8u* pSrc, Ipp8u val, Ipp8u* pDst, int len);

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

IppStatus ippsAndC_32u(const Ipp32u* pSrc, Ipp32u val, Ipp32u* pDst, int len);

IppStatus ippsAndC_8u_I(Ipp8u val, Ipp8u* pSrcDst, int len);

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

IppStatus ippsAndC_32u_I(Ipp32u val, Ipp32u* pSrcDst, int len);

Include Files

ipps.h

Domain Dependencies

Headers: ippcore.h, ippvm.h

Libraries: ippcore.lib, ippvm.lib

Parameters

val

Input scalar value.

pSrc

Pointer to the source vector.

pDst

Pointer to the destination vector.

pSrcDst

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

len

Number of elements in the vector.

Description

This function computes the bitwise AND of a scalar value val and each element of the vector pSrc, and stores the result in pDst.

The in-place flavors of ippsAndC compute the bitwise AND of a scalar value val and each element of the vector pSrcDst and store the result in pSrcDst.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsSizeErr

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