12 lines
464 B
Rust
12 lines
464 B
Rust
// use the maximum batch size that would be supported by AVX-512
|
|
//pub(crate) const SIMD_WIDTH: usize = 512;
|
|
pub const SIMD_WIDTH: usize = 256;
|
|
|
|
/// The batch size used for the "wide" decoded hex bytes (any bit in the upper half indicates an error).
|
|
pub const WIDE_BATCH_SIZE: usize = SIMD_WIDTH / 16;
|
|
|
|
/// The batch size used for the hex digits.
|
|
pub const DIGIT_BATCH_SIZE: usize = WIDE_BATCH_SIZE * 2;
|
|
|
|
pub const GATHER_BATCH_SIZE: usize = DIGIT_BATCH_SIZE / 4;
|