Skip to content

Commit 75b1062

Browse files
authored
Ignore dead_code warnings on scalar bit transpose code (#7408)
Likely we shouldn't use expect here but we also don't test on architectures where this wouldn't be dead code Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent ceb8638 commit 75b1062

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • encodings/fastlanes/src/bit_transpose

encodings/fastlanes/src/bit_transpose/scalar.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use crate::bit_transpose::TRANSPOSE_8X8;
1212
/// This version uses 64-bit gather + parallel bit operations instead of
1313
/// extracting bits one by one. Typically 5-10x faster than the basic scalar version.
1414
#[inline(never)]
15+
#[allow(dead_code)]
1516
pub fn transpose_bits_scalar(input: &[u8; 128], output: &mut [u8; 128]) {
1617
// Helper to perform 8x8 bit transpose on a u64 (each byte becomes a row)
1718
fn transpose_8x8(mut x: u64) -> u64 {
@@ -84,6 +85,7 @@ pub fn transpose_bits_scalar(input: &[u8; 128], output: &mut [u8; 128]) {
8485

8586
/// Fast scalar untranspose using the 8x8 bit matrix transpose algorithm.
8687
#[inline(never)]
88+
#[allow(dead_code)]
8789
pub fn untranspose_bits_scalar(input: &[u8; 128], output: &mut [u8; 128]) {
8890
fn transpose_8x8(mut x: u64) -> u64 {
8991
let t = (x ^ (x >> 7)) & TRANSPOSE_2X2;

0 commit comments

Comments
 (0)