| ... | @@ -10833,9 +10833,8 @@ pub const FuncGen = struct { | ... | @@ -10833,9 +10833,8 @@ pub const FuncGen = struct { |
| 10833 | comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Rw.read) == 0); | 10833 | comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Rw.read) == 0); |
| 10834 | comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Rw.write) == 1); | 10834 | comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Rw.write) == 1); |
| 10835 | | 10835 | |
| 10836 | // TODO these two asserts should be able to be comptime because the type is a u2 | 10836 | comptime assert(prefetch.locality >= 0); |
| 10837 | assert(prefetch.locality >= 0); | 10837 | comptime assert(prefetch.locality <= 3); |
| 10838 | assert(prefetch.locality <= 3); | | |
| 10839 | | 10838 | |
| 10840 | comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Cache.instruction) == 0); | 10839 | comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Cache.instruction) == 0); |
| 10841 | comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Cache.data) == 1); | 10840 | comptime assert(@intFromEnum(std.builtin.PrefetchOptions.Cache.data) == 1); |