algrant added a comment.
Herald added a project: clang.
Some targets (e.g. AArch64) support 8-bit, 16-bit and 64-bit atomics. max/min
in Clang 7.0 only supported 32-bit max/min, even though the other atomics
supported multiple widths. Is the intention here to support all (four) offered
widths,
algrant added a comment.
There is a (stalled) proposal to add atomic integer max/min to C++:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0493r0.pdf . The
proposal has memory semantics similar to these builtins, i.e. unconditional
RMW. There is no limitation to 32-bit types though,