@atomicRmw
on u0
#1549
Labels
accepted
This proposal is planned.
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Under
@atomicRmw
we have "TODO right now bool is not accepted. Also I think we could make non powers of 2 work fine, maybe we can remove this restriction". If@atomicRmw
where to work onu0
, then one could write code that is optionally threadsafe without a lot of special casing.Idk if this is a good idea. Maybe
@atomicRmw
should never be no-op because that might be confusing with its description "This builtin function atomically modifies memory and then returns the previous value.".u0
has no memory to modify.Related: #1530
The text was updated successfully, but these errors were encountered: