# rework std.atomic · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/70931dbdea96d92feb60406c827e39e566317863)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 70931dbdea96d92feb60406c827e39e566317863

Requested commit: 70931dbdea96d92feb60406c827e39e566317863

Commit: 70931dbdea96d92feb60406c827e39e566317863

Tree: ee569fab186e848d73de1e4dbc272ff5f9f6b7c1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [edb2f72988cd180c5d87b03481fa1c20b3325968](https://git.cafe/gitcafe/zig/commit/edb2f72988cd180c5d87b03481fa1c20b3325968?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/70931dbdea96d92feb60406c827e39e566317863?format=markdown)
