diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-07-04 10:08:58 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-07-22 20:17:46 +0200 |
| commit | ee6f2c5276c3e19b919abb61693e66b0ded9c8ba (patch) | |
| tree | 6974b5a100e5bc19cbfe9bd28066fec32072a316 /library/std_detect/src/detect/os/aarch64.rs | |
| parent | 1057a2213af6fd273da86f13edeae559bfdd587d (diff) | |
| download | rust-ee6f2c5276c3e19b919abb61693e66b0ded9c8ba.tar.gz rust-ee6f2c5276c3e19b919abb61693e66b0ded9c8ba.zip | |
Reformat `std_detect`
Diffstat (limited to 'library/std_detect/src/detect/os/aarch64.rs')
| -rw-r--r-- | library/std_detect/src/detect/os/aarch64.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/library/std_detect/src/detect/os/aarch64.rs b/library/std_detect/src/detect/os/aarch64.rs index 1ff2a17e6e1..c2c754ccf8d 100644 --- a/library/std_detect/src/detect/os/aarch64.rs +++ b/library/std_detect/src/detect/os/aarch64.rs @@ -17,9 +17,10 @@ //! - [Linux documentation](https://www.kernel.org/doc/Documentation/arm64/cpu-feature-registers.txt) //! - [ARM documentation](https://developer.arm.com/documentation/ddi0601/2022-12/AArch64-Registers?lang=en) -use crate::detect::{Feature, cache}; use core::arch::asm; +use crate::detect::{Feature, cache}; + /// Try to read the features from the system registers. /// /// This will cause SIGILL if the current OS is not trapping the mrs instruction. @@ -104,10 +105,7 @@ pub(crate) fn parse_system_registers( let sha2 = bits_shift(aa64isar0, 15, 12) >= 1; enable_feature(Feature::sha2, asimd && sha1 && sha2); enable_feature(Feature::rdm, asimd && bits_shift(aa64isar0, 31, 28) >= 1); - enable_feature( - Feature::dotprod, - asimd && bits_shift(aa64isar0, 47, 44) >= 1, - ); + enable_feature(Feature::dotprod, asimd && bits_shift(aa64isar0, 47, 44) >= 1); enable_feature(Feature::sve, asimd && bits_shift(aa64pfr0, 35, 32) >= 1); } |
