File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 143
143
/// expression evaluating to whether the local CPU has the AVX2 feature or
144
144
/// not.
145
145
///
146
- /// Note that this macro, like the `arch` module, is platform-specific. The
147
- /// name of the macro is the same across platforms, but the arguments to the
148
- /// macro are only the features for the current platform. For example calling
149
- /// `is_x86_feature_detected!("avx2")` on ARM will be a compile time
150
- /// error. To ensure we don't hit this error a statement level `#[cfg]` is
151
- /// used to only compile usage of the macro on `x86`/`x86_64`.
146
+ /// Note that this macro, like the `arch` module, is platform-specific. For
147
+ /// example calling `is_x86_feature_detected!("avx2")` on ARM will be a
148
+ /// compile time error. To ensure we don't hit this error a statement level
149
+ /// `#[cfg]` is used to only compile usage of the macro on `x86`/`x86_64`.
152
150
///
153
151
/// * Next up we see our AVX2-enabled function, `foo_avx2`. This function is
154
152
/// decorated with the `#[target_feature]` attribute which enables a CPU
You can’t perform that action at this time.
0 commit comments