File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 13
13
//! - [Vector types](#vector-types)
14
14
//! - [Conditional operations](#conditional-operations)
15
15
//! - [Conversions](#conversions)
16
+ //! - [Hardware Features](#hardware-features)
16
17
//! - [Performance
17
18
//! guide](https://rust-lang-nursery.github.io/packed_simd/perf-guide/)
18
19
//!
198
199
//!
199
200
//! Numeric casts are not very "precise": sometimes lossy, sometimes value
200
201
//! preserving, etc.
202
+ //!
203
+ //! ## Hardware Features
204
+ //!
205
+ //! This crate can use different hardware features based on your configured
206
+ //! `RUSTFLAGS`. For example, with no configured `RUSTFLAGS`, `u64x8` on
207
+ //! x86_64 will use SSE2 operations like `PCMPEQD`. If you configure
208
+ //! `RUSTFLAGS='-C target-feature=+avx2,+avx'` on supported x86_64 hardware
209
+ //! the same `u64x8` may use wider AVX2 operations like `VPCMPEQQ`. It is
210
+ //! important for performance and for hardware support requirements that
211
+ //! you choose an appropriate set of `target-feature` and `target-cpu`
212
+ //! options during builds. For more information, see the [Performance
213
+ //! guide](https://rust-lang-nursery.github.io/packed_simd/perf-guide/)
214
+ //!
201
215
202
216
#![ feature(
203
217
repr_simd,
You can’t perform that action at this time.
0 commit comments