|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
Functions | |
| uint32_t | mask (uint8_t width) |
Mask of width low bits (width 32 handled without a 32-bit shift, which is UB). | |
| uint8_t | clamp_width (uint8_t width) |
| Clamp a register width to the supported 8..32 range. | |
| uint8_t | rev8 (uint8_t b) |
Reverse the 8 bits of b. | |
| uint32_t | revN (uint32_t v, uint8_t width) |
Reverse the low width bits of v. | |
|
inline |
Mask of width low bits (width 32 handled without a 32-bit shift, which is UB).
Definition at line 61 of file crc.h.
Referenced by pc_crc_begin(), pc_crc_final(), and pc_crc_update().
|
inline |
Clamp a register width to the supported 8..32 range.
Definition at line 67 of file crc.h.
Referenced by pc_crc_final(), and pc_crc_update().
|
inline |
|
inline |