aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu/PerThread.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-07-16 06:27:56 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2024-07-16 06:28:41 -0400
commit9d1820d20635ade6cb2dbfc36744353715653670 (patch)
treec4efb8a3cf8a31153af696120b2a6a39202336f9 /src/Zcu/PerThread.zig
parentb0fe7eef54dcaab8f7f0c18be042bf1876274ca4 (diff)
downloadzig-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.zig3
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;