[libc] Add `fetch_or` to the atomic interface
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 11 Apr 2023 20:08:59 +0000 (15:08 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Sat, 15 Apr 2023 12:42:51 +0000 (07:42 -0500)
commitd4380fcbb8ea9994f26ea3cd8a59bfa601c302d6
tree4d1a14c59ae0a3327b869de655ef12320bafeeeb
parentfa3de2ed2964d18dd0b7457e77416fb4e688c8bd
[libc] Add `fetch_or` to the atomic interface

Summary:
This patch adds `fetch_or`. It is mainly useful for querying and set a
bit's status without using the more expensive `exchange` functions.
libc/src/__support/CPP/atomic.h