Commit e789f3a
committed
Auto merge of rust-lang#90271 - adamgemmell:dev/feat-detect-stabilise, r=Amanieu
Stabilise `is_aarch64_feature_detected!` under `simd_aarch64` feature
Initial implementation, looking for feedback on the approach here. rust-lang#86941
One point I noticed was that I haven't seen different "since" versions for the same feature - does this mean that other features can't be added to to the `simd_aarch64` feature once this is in stable? If so it might need a more specific name.
r? `@Amanieu`3 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| 549 | + | |
| 550 | + | |
549 | 551 | | |
550 | 552 | | |
551 | 553 | | |
552 | 554 | | |
553 | | - | |
554 | | - | |
555 | | - | |
| 555 | + | |
| 556 | + | |
556 | 557 | | |
557 | 558 | | |
558 | 559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
- crates/core_arch/avx512bw.md+18-18
- crates/core_arch/avx512f.md+24-24
- crates/core_arch/avx512vbmi2.md-153
- crates/core_arch/src/riscv64/mod.rs+4-4
- crates/core_arch/src/riscv_shared/mod.rs+300-10
- crates/core_arch/src/x86/avx512f.rs+704
- crates/core_arch/src/x86/avx512vbmi2.rs+574-1
- crates/std_detect/src/detect/arch/aarch64.rs+46-43
- crates/std_detect/src/detect/os/aarch64.rs+4
- crates/std_detect/src/detect/os/linux/aarch64.rs+2-2
- crates/std_detect/tests/cpu-detection.rs+2-1
0 commit comments