authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-06 23:19:55+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-07 01:29:52+02:00
logeebbb2dfec16216987c2bab13495725512b46ac8
treec58af9c24a8044c02111e308d594b6bdf58f442f
parent5dfebdcc07a3035fb41f79d9608beceb0c4bdc6f
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux: add missing HWCAP constants for arm


1 files changed, 16 insertions(+), 0 deletions(-)

lib/std/os/linux.zig+16
......@@ -643,6 +643,22 @@ pub const HWCAP = switch (native_arch) {
643643 pub const IDIV = IDIVA | IDIVT;
644644 pub const LPAE = 1 << 20;
645645 pub const EVTSTRM = 1 << 21;
646 pub const FPHP = 1 << 22;
647 pub const ASIMDHP = 1 << 23;
648 pub const ASIMDDP = 1 << 24;
649 pub const ASIMDFHM = 1 << 25;
650 pub const ASIMDBF16 = 1 << 26;
651 pub const I8MM = 1 << 27;
652
653 pub const @"2" = struct {
654 pub const AES = 1 << 0;
655 pub const PMULL = 1 << 1;
656 pub const SHA1 = 1 << 2;
657 pub const SHA2 = 1 << 3;
658 pub const CRC32 = 1 << 4;
659 pub const SB = 1 << 5;
660 pub const SSBS = 1 << 6;
661 };
646662 },
647663 .loongarch32, .loongarch64 => struct {
648664 pub const CPUCFG = 1 << 0;