Skip to content

Commit

Permalink
detect: Mention about HWCAP2 on AArch64 ILP32 Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 7, 2024
1 parent 178dbc6 commit 3076fb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imp/atomic128/detect/auxv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ mod arch {
info.set(CpuInfo::HAS_LSE2);
}
#[cfg(any(target_os = "linux", target_os = "android"))]
// HWCAP2 is not yet available on ILP32: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/tree/arch/arm64/include/uapi/asm/hwcap.h?h=staging/ilp32-5.1
#[cfg(target_pointer_width = "64")]
{
let hwcap2 = os::getauxval(ffi::AT_HWCAP2);
Expand Down

0 comments on commit 3076fb9

Please sign in to comment.