Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explore fixing #5187 via and/or/xor/not and associated updating ops #25180

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions base/atomics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function atomic_sub! end

Atomically bitwise-and `x` with `val`

Performs `x[] &= val` atomically. Returns the **old** value.
Performs `x[] and= mval` atomically. Returns the **old** value.

For further details, see LLVM's `atomicrmw and` instruction.

Expand All @@ -203,7 +203,7 @@ function atomic_and! end

Atomically bitwise-nand (not-and) `x` with `val`

Performs `x[] = ~(x[] & val)` atomically. Returns the **old** value.
Performs `x[] = not(and(x[], val))` atomically. Returns the **old** value.

For further details, see LLVM's `atomicrmw nand` instruction.

Expand All @@ -226,7 +226,7 @@ function atomic_nand! end

Atomically bitwise-or `x` with `val`

Performs `x[] |= val` atomically. Returns the **old** value.
Performs `x[] or= val` atomically. Returns the **old** value.

For further details, see LLVM's `atomicrmw or` instruction.

Expand All @@ -249,7 +249,7 @@ function atomic_or! end

Atomically bitwise-xor (exclusive-or) `x` with `val`

Performs `x[] \$= val` atomically. Returns the **old** value.
Performs `x[] xor= val` atomically. Returns the **old** value.

For further details, see LLVM's `atomicrmw xor` instruction.

Expand Down
Loading