everywhere: use @Int instead of std.meta

This commit is contained in:
Loïc Grégoire
2026-05-14 09:06:30 -04:00
parent c08288c401
commit b87b3cfad2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -77,8 +77,8 @@ const DescState = enum(u2) {
const usize_bits = @bitSizeOf(usize);
// Id is a monotonically increasing counter. `id & desc_mask` maps to the physical array index.
const Id = std.meta.Int(.unsigned, usize_bits - 2);
const IdSigned = std.meta.Int(.signed, usize_bits - 2);
const Id = @Int(.unsigned, usize_bits - 2);
const IdSigned = @Int(.signed, usize_bits - 2);
const State = packed struct(usize) {
id: Id,
+1 -1
View File
@@ -2,7 +2,7 @@ const std = @import("std");
fn get_closest_type(comptime N: usize) type {
const bits = std.math.ceilPowerOfTwo(usize, N) catch unreachable;
return std.meta.Int(.unsigned, bits);
return @Int(.unsigned, bits);
}
/// Static bitmap that uses the most efficient underlying word size for N < 64