Skip to content

Commit 4b37257

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 1ec729c commit 4b37257

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
@@ -1161,7 +1161,7 @@ pub const Cpu = struct {
11611161
pub const Set = struct {
11621162
ints: [usize_count]usize,
11631163

1164-
pub const needed_bit_count = 288;
1164+
pub const needed_bit_count = 317;
11651165
pub const byte_count = (needed_bit_count + 7) / 8;
11661166
pub const usize_count = (byte_count + (@sizeOf(usize) - 1)) / @sizeOf(usize);
11671167
pub const Index = std.math.Log2Int(std.meta.Int(.unsigned, usize_count * @bitSizeOf(usize)));

0 commit comments

Comments
 (0)