pub fn eql(a: CpuModel, b: CpuModel) bool
a: CpuModel
b: CpuModel
69 70 71 72 73 74 75 76 77 78
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, }; }