File tree 2 files changed +13
-3
lines changed
crates/std_detect/src/detect/os/linux
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ dox() {
25
25
if [ -z " $1 " ]; then
26
26
dox i686-unknown-linux-gnu
27
27
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
31
29
dox aarch64-unknown-linux-gnu
32
30
dox powerpc-unknown-linux-gnu
33
31
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 {
32
32
}
33
33
value
34
34
}
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