mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2025-12-17 00:35:13 -06:00
Specifically:
* Extend tables so that they won't wrap around wrongly for big sizes
(we would never hit this since our blocks are at most a few MBs
big).
* Use CRC instructions to compute remainders.
17 lines
322 B
C
17 lines
322 B
C
// Copyright 2025 XTX Markets Technologies Limited
|
|
//
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "crc.h"
|
|
|
|
#ifndef __CHECKER__ // sparse doesn't like this code at all.
|
|
|
|
#include "intrshims.h"
|
|
|
|
#include "log.h"
|
|
|
|
#define CRC32C_USE_PCLMUL 1
|
|
#define CRC32C_NAME(a) ternfs_##a##_fpu
|
|
#include "crc32c_body.c"
|
|
|
|
#endif |