-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting with GCC 7 and clang 15, single-bit std::atomic::fetch_or() actually works, except for the most significant bit, which was fixed in GCC 13 and as of now, not in clang yet: llvm/llvm-project#37322 The Microsoft compiler still prefers to emit loops around LOCK CMPXCHG, so we will keep using another work-around on that platform. It should be noted that GCC 7 is the oldest compiler available in currently supported GNU/Linux distributions. FreeBSD 14 uses clang 16.
- Loading branch information
Showing
4 changed files
with
72 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters