Skip to content

Commit 4eebdf5

Browse files
committed
std.Target: bump feature bit count from 288 to 317
/lib/std/debug.zig:559:14: error: reached unreachable code if (!ok) unreachable; // assertion failure ^~~~~~~~~~~ /lib/std/Target/riscv.zig:335:21: note: called at comptime here std.debug.assert(len <= CpuFeature.Set.needed_bit_count); ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 parent 847c8f8 commit 4eebdf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/Target.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ pub const Cpu = struct {
11951195
pub const Set = struct {
11961196
ints: [usize_count]usize,
11971197

1198-
pub const needed_bit_count = 288;
1198+
pub const needed_bit_count = 317;
11991199
pub const byte_count = (needed_bit_count + 7) / 8;
12001200
pub const usize_count = (byte_count + (@sizeOf(usize) - 1)) / @sizeOf(usize);
12011201
pub const Index = std.math.Log2Int(std.meta.Int(.unsigned, usize_count * @bitSizeOf(usize)));

0 commit comments

Comments
 (0)