That is, provide wrappers around the atomic_testandclear and
atomic_testandset primitives.
Submitted by: jeff
Differential D22702
bitset: implement BIT_TEST_CLR_ATOMIC & BIT_TEST_SET_ATOMIC rlibby on Dec 6 2019, 9:46 AM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions I do not like that n is evaluated twice, but this is inherited from other macros in the file.
Comment Actions Mark’s suggested wording looks good to me (as does the original).
Comment Actions So I had the bright idea before committing to check if atomic_testandset/clear is actually implemented on all architectures, and it isn't (yet?). I would like to commit this patch anyway and just hold off on D22703. That way we won't break any builds (this patch alone is not yet connected to anything) but I can reduce my patch stack a little. Sound okay? Comment Actions No objection from me. If any of the missing archs are sparc64, 32-bit mips, 32-bit arm v5 (and maybe v6...), don't feel obligated to add the support. They're all slated for death on 2020-01-01 anyway.
Comment Actions I think r359311 / git ca0ec73c11a7bb9ed409466e514fa5c34b6c84b5 / D22963 (generic atomic_testand{set,clear}_long) satisfied the dependency I was worried about here so I'm going to go ahead with this. The only conflict in the rebase was the man doc date. |