@atomicRmw - support bool and non-power-of-2 int types #1220
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
Milestone
bool and non-power-of-2 int types are still power of 2 int types under the hood. We can do secret pointer casts on them before and after calling llvm's atomicrmw instruction (these pointer casts will be no-ops in machine code).
There are TODO comments in zig std lib and in the language reference once this is complete.
Same thing goes for
@cmpxchgWeak
and@cmpxchgStrong
.The text was updated successfully, but these errors were encountered: