Remove dead code

This commit is contained in:
Michael Pfaff 2024-03-14 16:44:53 -04:00
parent f52c50ea44
commit 49ee38db90
1 changed files with 0 additions and 12 deletions

View File

@ -600,13 +600,6 @@ pub fn interleave_m64(a: __m128i, b: __m128i) -> __m128i {
#[inline(always)]
pub fn interleave_m128(a: __m128i, b: __m128i) -> __m256i {
const INTERLEAVE_A: Simd<u8, 32> = Simd::from_array(util::array_op!(gen[32] |i| {
if i & 1 == 0 {
(i as u8) >> 1
} else {
0xff
}
}));
const INTERLEAVE_B: Simd<u8, 32> = Simd::from_array(util::array_op!(gen[32] |i| {
if i & 1 == 0 {
0xff
@ -939,15 +932,10 @@ mod test {
const EXPECTED: [u8; 32] = array_op!(gen[32] |i| i as u8);
const A: [u8; 16] = array_op!(gen[16] |i| (i as u8) << 1);
const B: [u8; 16] = array_op!(gen[16] |i| ((i as u8) << 1) + 1);
const A1: [u8; 32] = array_op!(gen[32] |i| (i as u8) << 1);
const B1: [u8; 32] = array_op!(gen[32] |i| ((i as u8) << 1) + 1);
let a = Simd::from_array(A).into();
let b = Simd::from_array(B).into();
//let a = merge_m128_m256(a, a);
//let b = merge_m128_m256(b, b);
let actual = interleave_m128(a, b);
assert_eq!(Simd::from(actual), Simd::from_array(EXPECTED));
}