memx/utils/needles/
mod.rs

1// multiplicative
2pub(crate) mod dbl;
3pub(crate) mod qpl;
4pub(crate) mod sgl;
5pub(crate) mod tpl;
6
7#[inline(always)]
8fn _b16_value(b: u8) -> u128 {
9    (b as u128) * super::PackedU128::ONES
10}
11
12#[inline(always)]
13fn _b8_value(b: u8) -> u64 {
14    (b as u64) * super::PackedU64::ONES
15}
16
17#[inline(always)]
18fn _b4_value(b: u8) -> u32 {
19    (b as u32) * super::PackedU32::ONES
20}
21
22#[inline(always)]
23fn _b2_value(b: u8) -> u16 {
24    (b as u16) * super::PackedU16::ONES
25}