authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-07 00:32:56+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-07 01:29:52+02:00
log4eb24f4f8e2e6f226cced6f3691d8e5a9f7de7ac
treefda45dc972376c14c677859289697a60bcf25d15
parent1c96211cc5125b2f46dc882c5e656e57a569d7bd
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux: add HWCAP constants for x86


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

lib/std/os/linux.zig+6
...@@ -933,6 +933,12 @@ pub const HWCAP = switch (native_arch) {...@@ -933,6 +933,12 @@ pub const HWCAP = switch (native_arch) {
933 pub const CRYPTO = 1 << 26;933 pub const CRYPTO = 1 << 26;
934 pub const ADI = 1 << 27;934 pub const ADI = 1 << 27;
935 },935 },
936 .x86, .x86_64 => struct {
937 pub const @"2" = struct {
938 pub const RING3MWAIT = 1 << 0;
939 pub const FSGSBASE = 1 << 1;
940 };
941 },
936 else => struct {},942 else => struct {},
937};943};
938944