Developer Reference for Intel® Integrated Performance Primitives 2018

CRC16

Computes the CRC24 checksum for the source data buffer.

Syntax

IppStatus ippsCRC16_8u(Ipp8u* pSrc, int len, Ipp32u* pCRC16);

Include Files

ippe.h

Domain Dependencies

ippcore.h

Libraries

ippcore.lib

Parameters

pSrc

Pointer to the source data buffer.

srcLen

Number of elements in the source data buffer.

pCRC16

Pointer to the checksum value.

Description

This function computes the checksum for srcLen elements of the source data buffer pSrc and stores it in the pCRC16 respectively.

This function can be used to compute the accumulated value of the checksum for multiple buffers in the data stream by specifying as an input parameter the checksum value obtained in the preceding function call.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if the pSrc pointer is NULL.

ippStsSizeErr

Indicates an error if the length of the source vector is less than or equal to 0.