crc-fast 1.10.0

World's fastest generic CRC16, CRC32, and CRC64 calculator using SIMD. Supplies a C-compatible shared library for use in other languages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2025 Don MacAskill. Licensed under MIT or Apache-2.0.

#![cfg(test)]
#![allow(dead_code)]

use crate::CrcParams;
use crc::{Crc, Table};

pub struct CrcTestConfig<T: crc::Width, I: crc::Implementation + 'static> {
    pub params: CrcParams,
    pub reference_impl: &'static Crc<T, I>,
}

pub type Crc16TestConfig = CrcTestConfig<u16, Table<16>>;

pub type Crc32TestConfig = CrcTestConfig<u32, Table<16>>;

pub type Crc64TestConfig = CrcTestConfig<u64, Table<16>>;