clang 20.0.0git
Macros | Functions
crc32intrin.h File Reference

Go to the source code of this file.

Macros

#define __DEFAULT_FN_ATTRS    __attribute__((__always_inline__, __nodebug__, __target__("crc32")))
 

Functions

static __inline__ unsigned int __DEFAULT_FN_ATTRS _mm_crc32_u8 (unsigned int __C, unsigned char __D)
 Adds the unsigned integer operand to the CRC-32C checksum of the unsigned char operand.
 
static __inline__ unsigned int __DEFAULT_FN_ATTRS _mm_crc32_u16 (unsigned int __C, unsigned short __D)
 Adds the unsigned integer operand to the CRC-32C checksum of the unsigned short operand.
 
static __inline__ unsigned int __DEFAULT_FN_ATTRS _mm_crc32_u32 (unsigned int __C, unsigned int __D)
 Adds the first unsigned integer operand to the CRC-32C checksum of the second unsigned integer operand.
 

Macro Definition Documentation

◆ __DEFAULT_FN_ATTRS

#define __DEFAULT_FN_ATTRS    __attribute__((__always_inline__, __nodebug__, __target__("crc32")))

Definition at line 13 of file crc32intrin.h.

Function Documentation

◆ _mm_crc32_u16()

static __inline__ unsigned int __DEFAULT_FN_ATTRS _mm_crc32_u16 ( unsigned int  __C,
unsigned short  __D 
)
static

Adds the unsigned integer operand to the CRC-32C checksum of the unsigned short operand.

This intrinsic corresponds to the CRC32W instruction.

Parameters
__CAn unsigned integer operand to add to the CRC-32C checksum of operand __D.
__DAn unsigned 16-bit integer operand used to compute the CRC-32C checksum.
Returns
The result of adding operand __C to the CRC-32C checksum of operand __D.

Definition at line 51 of file crc32intrin.h.

References __D.

◆ _mm_crc32_u32()

static __inline__ unsigned int __DEFAULT_FN_ATTRS _mm_crc32_u32 ( unsigned int  __C,
unsigned int  __D 
)
static

Adds the first unsigned integer operand to the CRC-32C checksum of the second unsigned integer operand.

This intrinsic corresponds to the CRC32L instruction.

Parameters
__CAn unsigned integer operand to add to the CRC-32C checksum of operand __D.
__DAn unsigned 32-bit integer operand used to compute the CRC-32C checksum.
Returns
The result of adding operand __C to the CRC-32C checksum of operand __D.

Definition at line 71 of file crc32intrin.h.

References __D.

◆ _mm_crc32_u8()

static __inline__ unsigned int __DEFAULT_FN_ATTRS _mm_crc32_u8 ( unsigned int  __C,
unsigned char  __D 
)
static

Adds the unsigned integer operand to the CRC-32C checksum of the unsigned char operand.

This intrinsic corresponds to the CRC32B instruction.

Parameters
__CAn unsigned integer operand to add to the CRC-32C checksum of operand __D.
__DAn unsigned 8-bit integer operand used to compute the CRC-32C checksum.
Returns
The result of adding operand __C to the CRC-32C checksum of operand __D.

Definition at line 31 of file crc32intrin.h.

References __D.