Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

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
);
IppStatus ippsCRC24a_1u(Ipp8u*
pSrc
, int
srcBitOffset
, Ipp8u*
pDst
, int
dstBitOffset
, int
bitLen
);
IppStatus ippsCRC24b_1u(Ipp8u*
pSrc
, int
srcBitOffset
, Ipp8u*
pDst
, int
dstBitOffset
, int
bitLen
);
IppStatus ippsCRC24c_1u(Ipp8u*
pSrc
, int
srcBitOffset
, Ipp8u*
pDst
, int
dstBitOffset
, int
bitLen
);
Include Files
ippe.h
Domain Dependencies
ippcore.h
Libraries
ippcore.lib
Parameters
pSrc
Pointer to the source data buffer.
srcBitOffset
Offset in bits from the source data buffer.
pDst
Pointer to the destination data buffer.
dstBitOffset
Offset in bits from the destination data buffer.
len
Number of elements in the source data buffer.
pCRC24
Pointer to the checksum value.
bitLen
Length of the input source vector, in bits.
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. The following polynomial representations are used:
ippsCRC24a
X
24
+
X
23
+
X
18
+
X
17
+
X
14
+
X
11
+
X
10
+
X
7
+
X
6
+
X
5
+
X
4
+
X
3
+
X
+ 1
ippsCRC24b
X
24
+
X
23
+
X
6
+
X
5
+
X
+ 1
ippsCRC24c
X
24
+
X
23
+
X
21
+
X
20
+
X
17
+
X
15
+
X
13
+
X
12
+
X
8
+
X
4
+
X
2
+
X
+ 1
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.
ippsCRC24{a|b|c}_1u
. These function flavors compute the checksum of vectors that have a
8u
data type. It means that each byte consists of eight consecutive elements of the vector (1 bit per element). You need to specify the offsets from the source and destination vectors in the
srcBitOffset
and
dstBitOffset
parameters, respectively.
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.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804