diff --git a/rust/arrow/src/buffer.rs b/rust/arrow/src/buffer.rs index 4b550de8f0524..222a6ac16cc58 100644 --- a/rust/arrow/src/buffer.rs +++ b/rust/arrow/src/buffer.rs @@ -478,7 +478,7 @@ pub(super) fn buffer_bin_and( } } -#[cfg(simd)] +#[cfg(all(feature = "simd", not(feature = "avx512")))] pub(super) fn buffer_bin_and( left: &Buffer, left_offset_in_bits: usize, @@ -589,7 +589,7 @@ pub(super) fn buffer_bin_or( } } -#[cfg(simd)] +#[cfg(all(feature = "simd", not(feature = "avx512")))] pub(super) fn buffer_bin_or( left: &Buffer, left_offset_in_bits: usize,