diff --git a/src/fields/large_fields.rs b/src/fields/large_fields.rs index d1a662b..f940221 100644 --- a/src/fields/large_fields.rs +++ b/src/fields/large_fields.rs @@ -128,7 +128,6 @@ where debug_assert_eq!(x.len(), 8); let (x0, x) = x.split_at(1); x.iter() - .take(7) .zip(Self::ALPHA) .fold(x0[0], |sum, (xi, alphai)| sum + (alphai * xi)) } diff --git a/src/fields/x86_simd_large_fields.rs b/src/fields/x86_simd_large_fields.rs index 6dda2b5..a6d8869 100644 --- a/src/fields/x86_simd_large_fields.rs +++ b/src/fields/x86_simd_large_fields.rs @@ -497,7 +497,6 @@ impl ByteCombine for GF128 { debug_assert_eq!(x.len(), 8); let (x0, x) = x.split_at(1); x.iter() - .take(7) .zip(Self::ALPHA) .fold(x0[0], |sum, (xi, alphai)| sum + (alphai * xi)) } @@ -986,7 +985,6 @@ impl ByteCombine for GF256 { debug_assert_eq!(x.len(), 8); let (x0, x) = x.split_at(1); x.iter() - .take(7) .zip(Self::ALPHA) .fold(x0[0], |sum, (xi, alphai)| sum + (alphai * xi)) }