Commit 7c82ea8
committed
Update for #[target_feature] 1.1
target_features_11 was stabilized in 1.86 and allows safe functions to be marked with #[target_feature], simplifying the multiversion macro by removing the set of tt rules used to parse function definitions to inject the unsafe keyword and block.
In 1.87 architecture intrinsics that don't use raw pointers were made safe, allowing the removal of unsafe blocks in the SIMD implementations from the non-trait functions (trait implementations can't be marked with #[target_feature]).1 parent c697f69 commit 7c82ea8
File tree
5 files changed
+87
-91
lines changed- crates/utils/src
- simd
5 files changed
+87
-91
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments