With C++26 there have been the introduction of a few new atomic operations added.
One example is the atomic reductions: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3111r0.html .
Another example are the atomic min/max operations.
Both can be seen in the current C++ draft: https://eel.is/c++draft/atomics
It would be nice if some corresponding intrinsics could be handled in C mode.
clang already has __atomic_fetch_min and __atomic_fetch_max, though doesn't seem to have anything defined for reductions.
Would be a blocker for implementing the reductions?
I'm quite interested in having something representing the atomic reductions implemented.
With C++26 there have been the introduction of a few new atomic operations added.
One example is the atomic reductions: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3111r0.html .
Another example are the atomic min/max operations.
Both can be seen in the current C++ draft: https://eel.is/c++draft/atomics
It would be nice if some corresponding intrinsics could be handled in C mode.
clang already has
__atomic_fetch_minand__atomic_fetch_max, though doesn't seem to have anything defined for reductions.Would be a blocker for implementing the reductions?
I'm quite interested in having something representing the atomic reductions implemented.