Skip to content

Implement new C++26 atomic operations #984

@mmalcomson

Description

@mmalcomson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions