DoxigAlpha

eql

Function parameters

Parameters

#

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
parseCpuArch
Similar to `parse` except instead of fully parsing, it only determines the CPU
parseVersion
Similar to `SemanticVersion.parse`, but with following changes:
serializeCpu
Renders the query into a textual representation that can be parsed via the

Source

Implementation

#
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,
    };
}