pub fn has(cpu: Cpu, comptime family: Arch.Family, feature: @field(Target, @tagName(family)).Feature) bool
Returns true if feature is enabled.
feature
cpu: Cpu
family: Arch.Family
feature: @field(Target, @tagName(family)).Feature
2173 2174 2175 2176
pub fn has(cpu: Cpu, comptime family: Arch.Family, feature: @field(Target, @tagName(family)).Feature) bool { if (family != cpu.arch.family()) return false; return cpu.features.isEnabled(@backingInt(feature)); }
Returns true if
featureis enabled.