Function allFeaturesList [src]

All CPU features Zig is aware of, sorted lexicographically by name.

Prototype

pub fn allFeaturesList(arch: Arch) []const Cpu.Feature

Parameters

arch: Arch

Source

pub fn allFeaturesList(arch: Arch) []const Cpu.Feature { return switch (arch.family()) { inline else => |f| &@field(Target, @tagName(f)).all_features, }; }