| ... | @@ -501,11 +501,8 @@ pub const Target = struct { | ... | @@ -501,11 +501,8 @@ pub const Target = struct { |
| 501 | | 501 | |
| 502 | /// Removes the specified feature but not its dependents. | 502 | /// Removes the specified feature but not its dependents. |
| 503 | pub fn removeFeatureSet(set: *Set, other_set: Set) void { | 503 | pub fn removeFeatureSet(set: *Set, other_set: Set) void { |
| 504 | // TODO should be able to use binary not on @Vector type. | 504 | set.ints = @as(@Vector(usize_count, usize), set.ints) & |
| 505 | // https://github.com/ziglang/zig/issues/903 | 505 | ~@as(@Vector(usize_count, usize), other_set.ints); |
| 506 | for (set.ints) |*int, i| { | | |
| 507 | int.* &= ~other_set.ints[i]; | | |
| 508 | } | | |
| 509 | } | 506 | } |
| 510 | | 507 | |
| 511 | pub fn populateDependencies(set: *Set, all_features_list: []const Cpu.Feature) void { | 508 | pub fn populateDependencies(set: *Set, all_features_list: []const Cpu.Feature) void { |