From 49bffbbf21ce093985e1a15ff0f8f3f3f096fe93 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Thu, 28 Jul 2022 11:36:58 +0800 Subject: [PATCH] Implement LWG-3671: `atomic_fetch_xor` missing from `stdatomic.h` (#2905) --- stl/inc/stdatomic.h | 2 ++ tests/std/tests/P0943R6_stdatomic_h/test.compile.pass.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/stl/inc/stdatomic.h b/stl/inc/stdatomic.h index 82cbc5795ad..29838b8c06c 100644 --- a/stl/inc/stdatomic.h +++ b/stl/inc/stdatomic.h @@ -117,6 +117,8 @@ using _STD atomic_fetch_sub; using _STD atomic_fetch_sub_explicit; using _STD atomic_fetch_or; using _STD atomic_fetch_or_explicit; +using _STD atomic_fetch_xor; +using _STD atomic_fetch_xor_explicit; using _STD atomic_fetch_and; using _STD atomic_fetch_and_explicit; using _STD atomic_flag_test_and_set; diff --git a/tests/std/tests/P0943R6_stdatomic_h/test.compile.pass.cpp b/tests/std/tests/P0943R6_stdatomic_h/test.compile.pass.cpp index 5679d5b36f9..5f3322f7d76 100644 --- a/tests/std/tests/P0943R6_stdatomic_h/test.compile.pass.cpp +++ b/tests/std/tests/P0943R6_stdatomic_h/test.compile.pass.cpp @@ -101,6 +101,8 @@ namespace test { using ::atomic_fetch_or_explicit; using ::atomic_fetch_sub; using ::atomic_fetch_sub_explicit; + using ::atomic_fetch_xor; + using ::atomic_fetch_xor_explicit; using ::atomic_flag_clear; using ::atomic_flag_clear_explicit; using ::atomic_flag_test_and_set;