File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
crates/std_detect/src/detect/os/linux Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ dox() {
2525if [ -z " $1 " ]; then
2626 dox i686-unknown-linux-gnu
2727 dox x86_64-unknown-linux-gnu
28- # Disabled temporarily,
29- # See https://github.com/rust-lang/rust/issues/134511
30- # dox armv7-unknown-linux-gnueabihf
28+ dox armv7-unknown-linux-gnueabihf
3129 dox aarch64-unknown-linux-gnu
3230 dox powerpc-unknown-linux-gnu
3331 dox powerpc64le-unknown-linux-gnu
Original file line number Diff line number Diff line change @@ -32,3 +32,15 @@ pub(crate) fn detect_features() -> cache::Initializer {
3232 }
3333 value
3434}
35+
36+ /// Is the CPU known to have a broken NEON unit?
37+ ///
38+ /// See <https://crbug.com/341598>.
39+ #[ cfg( feature = "std_detect_file_io" ) ]
40+ fn has_broken_neon ( cpuinfo : & super :: cpuinfo:: CpuInfo ) -> bool {
41+ cpuinfo. field ( "CPU implementer" ) == "0x51"
42+ && cpuinfo. field ( "CPU architecture" ) == "7"
43+ && cpuinfo. field ( "CPU variant" ) == "0x1"
44+ && cpuinfo. field ( "CPU part" ) == "0x04d"
45+ && cpuinfo. field ( "CPU revision" ) == "0"
46+ }
You can’t perform that action at this time.
0 commit comments