We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c776fbf commit be284b6Copy full SHA for be284b6
library/std_detect/src/detect/os/linux/aarch64.rs
@@ -209,6 +209,12 @@ impl From<auxvec::AuxVec> for AtHwcap {
209
wfxt: bit::test(auxv.hwcap2, 31),
210
..Default::default()
211
};
212
+
213
+ // Hardware capabilites from bits 32 to 63 should only
214
+ // be tested on LP64 targets with 64 bits `usize`.
215
+ // On ILP32 targets like `aarch64-unknown-linux-gun_ilp32`,
216
+ // these hardware capabilites will default to `false`.
217
+ // https://github.com/rust-lang/rust/issues/146230
218
#[cfg(target_pointer_width = "64")]
219
{
220
// cap.ebf16: bit::test(auxv.hwcap2, 32);
0 commit comments