| ... | @@ -719,11 +719,7 @@ pub const Target = struct { | ... | @@ -719,11 +719,7 @@ pub const Target = struct { |
| 719 | | 719 | |
| 720 | /// Adds the specified feature set but not its dependencies. | 720 | /// Adds the specified feature set but not its dependencies. |
| 721 | pub fn addFeatureSet(set: *Set, other_set: Set) void { | 721 | pub fn addFeatureSet(set: *Set, other_set: Set) void { |
| 722 | if (builtin.zig_backend == .stage2_c) { | 722 | set.ints = @as(@Vector(usize_count, usize), set.ints) | @as(@Vector(usize_count, usize), other_set.ints); |
| 723 | for (&set.ints, 0..) |*int, i| int.* |= other_set.ints[i]; | | |
| 724 | } else { | | |
| 725 | set.ints = @as(@Vector(usize_count, usize), set.ints) | @as(@Vector(usize_count, usize), other_set.ints); | | |
| 726 | } | | |
| 727 | } | 723 | } |
| 728 | | 724 | |
| 729 | /// Removes the specified feature but not its dependents. | 725 | /// Removes the specified feature but not its dependents. |
| ... | @@ -735,11 +731,7 @@ pub const Target = struct { | ... | @@ -735,11 +731,7 @@ pub const Target = struct { |
| 735 | | 731 | |
| 736 | /// Removes the specified feature but not its dependents. | 732 | /// Removes the specified feature but not its dependents. |
| 737 | pub fn removeFeatureSet(set: *Set, other_set: Set) void { | 733 | pub fn removeFeatureSet(set: *Set, other_set: Set) void { |
| 738 | if (builtin.zig_backend == .stage2_c) { | 734 | set.ints = @as(@Vector(usize_count, usize), set.ints) & ~@as(@Vector(usize_count, usize), other_set.ints); |
| 739 | for (&set.ints, 0..) |*int, i| int.* &= ~other_set.ints[i]; | | |
| 740 | } else { | | |
| 741 | set.ints = @as(@Vector(usize_count, usize), set.ints) & ~@as(@Vector(usize_count, usize), other_set.ints); | | |
| 742 | } | | |
| 743 | } | 735 | } |
| 744 | | 736 | |
| 745 | pub fn populateDependencies(set: *Set, all_features_list: []const Cpu.Feature) void { | 737 | pub fn populateDependencies(set: *Set, all_features_list: []const Cpu.Feature) void { |