Skip to content

Commit 391fbff

Browse files
committed
Rename fptoint to frintts
1 parent e7f551f commit 391fbff

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

crates/std_detect/src/detect/arch/aarch64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ features! {
4040
/// * `"sve2-sm4"` - FEAT_SVE2_SM4
4141
/// * `"sve2-sha3"` - FEAT_SVE2_SHA3
4242
/// * `"sve2-bitperm"` - FEAT_SVE2_BitPerm
43-
/// * `"fptoint"` - FEAT_FRINTTS
43+
/// * `"frintts"` - FEAT_FRINTTS
4444
/// * `"i8mm"` - FEAT_I8MM
4545
/// * `"f32mm"` - FEAT_F32MM
4646
/// * `"f64mm"` - FEAT_F64MM
@@ -119,7 +119,7 @@ features! {
119119
/// FEAT_SVE_SHA3 (SVE2 SHA3 crypto)
120120
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] sve2_bitperm: "sve2-bitperm";
121121
/// FEAT_SVE_BitPerm (SVE2 bit permutation instructions)
122-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] fptoint: "fptoint";
122+
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] frintts: "frintts";
123123
/// FEAT_FRINTTS (float to integer rounding instructions)
124124
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] i8mm: "i8mm";
125125
/// FEAT_I8MM (integer matrix multiplication, plus ASIMD support)

crates/std_detect/src/detect/os/linux/aarch64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl AtHwcap {
241241
enable_feature(Feature::jsconv, self.jscvt && self.fp);
242242
enable_feature(Feature::rdm, self.asimdrdm);
243243
enable_feature(Feature::dotprod, self.asimddp);
244-
enable_feature(Feature::fptoint, self.frint);
244+
enable_feature(Feature::frintts, self.frint);
245245

246246
// FEAT_I8MM & FEAT_BF16 also include optional SVE components which linux exposes
247247
// separately. We ignore that distinction here.

crates/std_detect/tests/cpu-detection.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ fn arm_linux() {
2525
println!("neon: {}", is_arm_feature_detected!("neon"));
2626
println!("pmull: {}", is_arm_feature_detected!("pmull"));
2727
println!("crc: {}", is_arm_feature_detected!("crc"));
28-
println!("crypto: {}", is_arm_feature_detected!("crypto"));
28+
println!("aes: {}", is_arm_feature_detected!("aes"));
29+
println!("sha2: {}", is_arm_feature_detected!("sha2"));
2930
}
3031

3132
#[test]
@@ -41,7 +42,6 @@ fn aarch64_linux() {
4142
println!("fp16: {}", is_aarch64_feature_detected!("fp16"));
4243
println!("sve: {}", is_aarch64_feature_detected!("sve"));
4344
println!("crc: {}", is_aarch64_feature_detected!("crc"));
44-
println!("crypto: {}", is_aarch64_feature_detected!("crypto"));
4545
println!("lse: {}", is_aarch64_feature_detected!("lse"));
4646
println!("lse2: {}", is_aarch64_feature_detected!("lse2"));
4747
println!("rdm: {}", is_aarch64_feature_detected!("rdm"));
@@ -62,7 +62,7 @@ fn aarch64_linux() {
6262
println!("sve2-sm4: {}", is_aarch64_feature_detected!("sve2-sm4"));
6363
println!("sve2-sha3: {}", is_aarch64_feature_detected!("sve2-sha3"));
6464
println!("sve2-bitperm: {}", is_aarch64_feature_detected!("sve2-bitperm"));
65-
println!("fptoint: {}", is_aarch64_feature_detected!("fptoint"));
65+
println!("frintts: {}", is_aarch64_feature_detected!("frintts"));
6666
println!("i8mm: {}", is_aarch64_feature_detected!("i8mm"));
6767
println!("f32mm: {}", is_aarch64_feature_detected!("f32mm"));
6868
println!("f64mm: {}", is_aarch64_feature_detected!("f64mm"));
@@ -72,6 +72,7 @@ fn aarch64_linux() {
7272
println!("mte: {}", is_aarch64_feature_detected!("mte"));
7373
println!("jsconv: {}", is_aarch64_feature_detected!("jsconv"));
7474
println!("fcma: {}", is_aarch64_feature_detected!("fcma"));
75+
println!("aes: {}", is_aarch64_feature_detected!("aes"));
7576
println!("sha2: {}", is_aarch64_feature_detected!("sha2"));
7677
println!("sha3: {}", is_aarch64_feature_detected!("sha3"));
7778
println!("sm4: {}", is_aarch64_feature_detected!("sm4"));

0 commit comments

Comments
 (0)