Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__crc32cb, __crc32ch, __crc32cw, __crc32cd

In this section:
Syntax
unsigned int __crc32cb(unsigned int crc, unsigned char data);
unsigned int __crc32ch(unsigned int crc, unsigned short data);
unsigned int __crc32cw(unsigned int crc, unsigned int data);
unsigned int __crc32cd(unsigned int crc, unsigned long long data);
Description

Calculates a CRC32C checksum from a checksum (or initial value) crc and one item of data.

Note

The 32-bit Arm/Thumb instructions do not include CRC32CX, so __crc32cd is implemented as two calls to __crc32cw.

These intrinsic functions are defined according to the Arm C Language Extensions (ACLE).

Note

To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.