aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-18 10:49:54 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-18 11:59:09 -0700
commit30efcf22d799c055d8ec987aa2f55a11c133b709 (patch)
tree35febf72fdea7d3f571f01005823442701e02dd0 /lib/std
parentf423b5949b8722d4b290f57c3d06d015e39217b0 (diff)
downloadzig-30efcf22d799c055d8ec987aa2f55a11c133b709.tar.gz
zig-30efcf22d799c055d8ec987aa2f55a11c133b709.zip
stage2: implement `@prefetch`
This reverts commit f423b5949b8722d4b290f57c3d06d015e39217b0, re-instating commit d48e4245b68bf25c7f41804a5012ac157a5ee546.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/builtin.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 72503b7d2f..ba5801e936 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,
};