diff options
Diffstat (limited to 'vendor/bytecount/src/simd/mod.rs')
-rw-r--r-- | vendor/bytecount/src/simd/mod.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/bytecount/src/simd/mod.rs b/vendor/bytecount/src/simd/mod.rs new file mode 100644 index 000000000..d144e1847 --- /dev/null +++ b/vendor/bytecount/src/simd/mod.rs @@ -0,0 +1,17 @@ +#[cfg(feature = "generic-simd")] +pub mod generic; + +// This is like generic, but written explicitly +// because generic SIMD requires nightly. +#[cfg(all( + feature = "runtime-dispatch-simd", + any(target_arch = "x86", target_arch = "x86_64"), + not(feature = "generic-simd") +))] +pub mod x86_sse2; + +// Modern x86 machines can do lots of fun stuff; +// this is where the *real* optimizations go. +// Runtime feature detection is not available with no_std. +#[cfg(all(feature = "runtime-dispatch-simd", target_arch = "x86_64"))] +pub mod x86_avx2; |