mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +00:00
everywhere: use @Int instead of std.meta
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user