Zig 0.17.0-dev (Split by item)
This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig library itself.
Zig › std/ › os/ › linux.zig › HWCAP
HWCAP
linux.HWCAP
pub const HWCAP = switch (native_arch )
File
Code
pub const HWCAP = switch (native_arch ) {
.arm , .armeb , .thumb , .thumbeb => struct {
pub const SWP = 1 << 0 ;
pub const HALF = 1 << 1 ;
pub const THUMB = 1 << 2 ;
pub const @"26BIT" = 1 << 3 ;
pub const FAST_MULT = 1 << 4 ;
pub const FPA = 1 << 5 ;
pub const VFP = 1 << 6 ;
pub const EDSP = 1 << 7 ;
pub const JAVA = 1 << 8 ;
pub const IWMMXT = 1 << 9 ;
pub const CRUNCH = 1 << 10 ;
pub const THUMBEE = 1 << 11 ;
pub const NEON = 1 << 12 ;
pub const VFPv3 = 1 << 13 ;
pub const VFPv3D16 = 1 << 14 ;
pub const TLS = 1 << 15 ;
pub const VFPv4 = 1 << 16 ;
pub const IDIVA = 1 << 17 ;
pub const IDIVT = 1 << 18 ;
pub const VFPD32 = 1 << 19 ;
pub const IDIV = IDIVA | IDIVT ;
pub const LPAE = 1 << 20 ;
pub const EVTSTRM = 1 << 21 ;
},
.loongarch32 , .loongarch64 => struct {
pub const CPUCFG = 1 << 0 ;
pub const LAM = 1 << 1 ;
pub const UAL = 1 << 2 ;
pub const FPU = 1 << 3 ;
pub const LSX = 1 << 4 ;
pub const LASX = 1 << 5 ;
pub const CRC32 = 1 << 6 ;
pub const COMPLEX = 1 << 7 ;
pub const CRYPTO = 1 << 8 ;
pub const LVZ = 1 << 9 ;
pub const LBT_X86 = 1 << 10 ;
pub const LBT_ARM = 1 << 11 ;
pub const LBT_MIPS = 1 << 12 ;
pub const PTW = 1 << 13 ;
pub const LSPW = 1 << 14 ;
pub const SCQ = 1 << 15 ;
},
else => struct {},
}