Developer Reference for Intel® Integrated Performance Primitives 2018

CRC24a, CRC24b, CRC24c

Computes the CRC24 checksum for the source data buffer.

Syntax

IppStatus ippsCRC24a_8u(Ipp8u* pSrc, int len, Ipp32u* pCRC24);

IppStatus ippsCRC24b_8u(Ipp8u* pSrc, int len, Ipp32u* pCRC24);

IppStatus ippsCRC24c_8u(Ipp8u* pSrc, int len, Ipp32u* pCRC24);

Include Files

ippe.h

Domain Dependencies

ippcore.h

Libraries

ippcore.lib

Parameters

pSrc

Pointer to the source data buffer.

len

Number of elements in the source data buffer.

pCRC24

Pointer to the checksum value.

Description

These functions compute the checksum for srcLen elements of the source data buffer pSrc using different polynomials and store it in the pCRC24 respectively.

These functions 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.