Function eql [src]
Prototype
pub fn eql(a: CpuModel, b: CpuModel) bool
Parameters
a: CpuModel
b: CpuModel
Source
pub fn eql(a: CpuModel, b: CpuModel) bool {
const Tag = @typeInfo(CpuModel).@"union".tag_type.?;
const a_tag: Tag = a;
const b_tag: Tag = b;
if (a_tag != b_tag) return false;
return switch (a) {
.native, .baseline, .determined_by_arch_os => true,
.explicit => |a_model| a_model == b.explicit,
};
}