diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-11-22 18:49:18 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-11-22 19:08:55 -0700 |
| commit | 70931dbdea96d92feb60406c827e39e566317863 (patch) | |
| tree | ee569fab186e848d73de1e4dbc272ff5f9f6b7c1 /test/behavior/basic.zig | |
| parent | edb2f72988cd180c5d87b03481fa1c20b3325968 (diff) | |
| download | zig-70931dbdea96d92feb60406c827e39e566317863.tar.gz zig-70931dbdea96d92feb60406c827e39e566317863.zip | |
rework std.atomic
* move std.atomic.Atomic to std.atomic.Value
* fix incorrect argument order passed to testing.expectEqual
* make the functions be a thin wrapper over the atomic builtins and
stick to the naming conventions.
* remove pointless functions loadUnchecked and storeUnchecked. Instead,
name the field `raw` instead of `value` (which is redundant with the
type name).
* simplify the tests by not passing every possible combination. Many
cases were iterating over every possible combinations but then not
even using the for loop element value!
* remove the redundant compile errors which are already implemented by
the language itself.
* remove dead x86 inline assembly. this should be implemented in the
language if at all.
Diffstat (limited to 'test/behavior/basic.zig')
0 files changed, 0 insertions, 0 deletions
