Function has [src]

Returns true if feature is enabled.

Prototype

pub fn has(cpu: Cpu, comptime family: Arch.Family, feature: @field(Target, @tagName(family)).Feature) bool

Parameters

cpu: Cpufamily: Arch.Familyfeature: @field(Target, @tagName(family)).Feature

Source

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(@intFromEnum(feature)); }