pub fn hasAll(cpu: Cpu, comptime family: Arch.Family, features: []const @field(Target, @tagName(family)).Feature) bool
Returns true if all features in features are enabled.
features
cpu: Cpu
family: Arch.Family
features: []const @field(Target, @tagName(family)).Feature
2188 2189 2190 2191 2192 2193 2194
pub fn hasAll(cpu: Cpu, comptime family: Arch.Family, features: []const @field(Target, @tagName(family)).Feature) bool { if (family != cpu.arch.family()) return false; for (features) |feature| { if (!cpu.features.isEnabled(@backingInt(feature))) return false; } return true; }
Returns true if all features in
featuresare enabled.