Skip to content

Commit ea024f0

Browse files
committed
use 256-bit impl on avx2
1 parent 6fec796 commit ea024f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

portable/src/implementation/simd.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,18 @@ impl basic::imp::ChunkedUtf8Validator for ChunkedUtf8ValidatorImp {
961961
}
962962
}
963963

964+
#[cfg(not(all(
965+
any(target_arch = "x86_64", target_arch = "x86"),
966+
target_feature = "avx2"
967+
)))]
964968
pub(crate) use v128 as auto; // FIXME: select based on target feature
965969

970+
#[cfg(all(
971+
any(target_arch = "x86_64", target_arch = "x86"),
972+
target_feature = "avx2"
973+
))]
974+
pub(crate) use v256 as auto; // FIXME: select based on target feature
975+
966976
pub(crate) mod v128 {
967977
/// Validation implementation for CPUs supporting the SIMD extension (see module).
968978
///

0 commit comments

Comments
 (0)