util/crc.c: Add simple CRC-32 implementation

This commit is contained in:
Tau
2018-11-08 10:20:21 -05:00
parent 920328bc9e
commit 7cf0914092
3 changed files with 36 additions and 0 deletions

6
util/crc.h Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <stddef.h>
#include <stdint.h>
uint32_t crc32(const void *src, size_t nbytes, uint32_t in);