Files
ternfs-XTXMarkets/kmod/crc_fpu.c
Francesco Mazzoli 136d55bff0 Cleanup CRC32C code
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.
2025-09-21 22:22:22 +01:00

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