Rizin
unix-like reverse engineering framework and cli tools
crc_macros.h File Reference

Some endian-dependent macros for CRC32 and CRC64. More...

Go to the source code of this file.

Macros

#define A(x)   ((x) & 0xFF)
 
#define B(x)   (((x) >> 8) & 0xFF)
 
#define C(x)   (((x) >> 16) & 0xFF)
 
#define D(x)   ((x) >> 24)
 
#define S8(x)   ((x) >> 8)
 
#define S32(x)   ((x) >> 32)
 

Detailed Description

Some endian-dependent macros for CRC32 and CRC64.

Definition in file crc_macros.h.

Macro Definition Documentation

◆ A

#define A (   x)    ((x) & 0xFF)

Definition at line 23 of file crc_macros.h.

◆ B

#define B (   x)    (((x) >> 8) & 0xFF)

Definition at line 24 of file crc_macros.h.

◆ C

#define C (   x)    (((x) >> 16) & 0xFF)

Definition at line 25 of file crc_macros.h.

◆ D

#define D (   x)    ((x) >> 24)

Definition at line 26 of file crc_macros.h.

◆ S32

#define S32 (   x)    ((x) >> 32)

Definition at line 29 of file crc_macros.h.

◆ S8

#define S8 (   x)    ((x) >> 8)

Definition at line 28 of file crc_macros.h.