ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
crc32.c File Reference

CRC32-C with cached CPU dispatch and a portable table fallback. More...

Go to the source code of this file.

Typedefs

typedef uint32_t(* crc32_fn) (uint32_t, const void *, size_t)

Functions

uint32_t asciichat_crc32_update (uint32_t previous, const void *data, size_t len)
 Compute CRC32 checksum with hardware acceleration (if available).
bool crc32_hw_is_available (void)
 Check if hardware CRC32 acceleration is available at runtime.
uint32_t asciichat_crc32_sw_update (uint32_t previous, const void *data, size_t len)
uint32_t asciichat_crc32_hw (const void *data, size_t len)
uint32_t asciichat_crc32_sw (const void *data, size_t len)
 Compute CRC32 checksum using software implementation only.

Detailed Description

CRC32-C with cached CPU dispatch and a portable table fallback.

Definition in file crc32.c.

Typedef Documentation

◆ crc32_fn

typedef uint32_t(* crc32_fn) (uint32_t, const void *, size_t)

Definition at line 62 of file crc32.c.