diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-15 15:17:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-15 15:18:25 -0700 |
| commit | d48e4245b68bf25c7f41804a5012ac157a5ee546 (patch) | |
| tree | 3e26f4794d2f8ace3484f5dd24a01aa78298f5e7 /lib/std/builtin.zig | |
| parent | 3901b6fb000b909e90347f6910ea6315ee03e220 (diff) | |
| download | zig-d48e4245b68bf25c7f41804a5012ac157a5ee546.tar.gz zig-d48e4245b68bf25c7f41804a5012ac157a5ee546.zip | |
stage2: implement `@prefetch`
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 7fcd9a369b..c94651a92d 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -643,12 +643,12 @@ pub const PrefetchOptions = struct { /// The cache that the prefetch should be preformed on. cache: Cache = .data, - pub const Rw = enum { + pub const Rw = enum(u1) { read, write, }; - pub const Cache = enum { + pub const Cache = enum(u1) { instruction, data, }; |
