diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-16 06:27:56 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-16 06:28:41 -0400 |
| commit | 9d1820d20635ade6cb2dbfc36744353715653670 (patch) | |
| tree | c4efb8a3cf8a31153af696120b2a6a39202336f9 /src/Zcu/PerThread.zig | |
| parent | b0fe7eef54dcaab8f7f0c18be042bf1876274ca4 (diff) | |
| download | zig-9d1820d20635ade6cb2dbfc36744353715653670.tar.gz zig-9d1820d20635ade6cb2dbfc36744353715653670.zip | |
InternPool: reduce max tid width by one bit
@mlugg keeps stealing my bits!
Diffstat (limited to 'src/Zcu/PerThread.zig')
| -rw-r--r-- | src/Zcu/PerThread.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index c3f569cc7d..ce6b1cb7a9 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -3,7 +3,8 @@ zcu: *Zcu, /// Dense, per-thread unique index. tid: Id, -pub const Id = if (InternPool.single_threaded) enum { main } else enum(u8) { main, _ }; +pub const IdBacking = u7; +pub const Id = if (InternPool.single_threaded) enum { main } else enum(IdBacking) { main, _ }; pub fn destroyDecl(pt: Zcu.PerThread, decl_index: Zcu.Decl.Index) void { const zcu = pt.zcu; |
