diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-07-16 13:14:29 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-30 06:36:41 +0200 |
| commit | 2c0cc81e745ddcea072bce6895a3ba31523d73f8 (patch) | |
| tree | c70d2508fcd635111d9e10ef7687543d160ad4d4 /lib | |
| parent | 587eddda283dbe0bd1d6529d1c5924acfe252c9c (diff) | |
| download | zig-2c0cc81e745ddcea072bce6895a3ba31523d73f8.tar.gz zig-2c0cc81e745ddcea072bce6895a3ba31523d73f8.zip | |
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);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/Target.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 24deffbf1a..0f94421f88 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -1175,7 +1175,7 @@ pub const Cpu = struct { pub const Set = struct { ints: [usize_count]usize, - pub const needed_bit_count = 288; + pub const needed_bit_count = 317; pub const byte_count = (needed_bit_count + 7) / 8; pub const usize_count = (byte_count + (@sizeOf(usize) - 1)) / @sizeOf(usize); pub const Index = std.math.Log2Int(std.meta.Int(.unsigned, usize_count * @bitSizeOf(usize))); |
