Function isSuperSetOf [src]

Prototype

pub fn isSuperSetOf(set: Set, other_set: Set) bool

Parameters

set: Setother_set: Set

Source

pub fn isSuperSetOf(set: Set, other_set: Set) bool { if (builtin.zig_backend == .stage2_x86_64 and builtin.object_format == .coff) { var result = true; for (&set.ints, other_set.ints) |*set_int, other_set_int| result = result and (set_int.* & other_set_int) == other_set_int; return result; } else { const V = @Vector(usize_count, usize); const set_v: V = set.ints; const other_v: V = other_set.ints; return @reduce(.And, (set_v & other_v) == other_v); } }