File tree Expand file tree Collapse file tree
encodings/fastlanes/src/bit_transpose Expand file tree Collapse file tree Original file line number Diff line number Diff 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) ]
1516pub 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) ]
8789pub 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 ;
You can’t perform that action at this time.
0 commit comments