[libcxx-commits] [libcxx] [libc++] Implement P0493R5: Atomic minimum/maximum (PR #180333)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 16 05:09:18 PST 2026


================
@@ -0,0 +1,50 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++26
+// XFAIL: !has-64-bit-atomics
+
+// <atomic>
+
+// template<class T>
+//   T atomic_fetch_min(volatile atomic<T>*, typename atomic<T>::value_type) noexcept;
+// template<class T>
+//   constexpr T atomic_fetch_min(atomic<T>*, typename atomic<T>::value_type) noexcept;
+
----------------
huixie90 wrote:

it would be nice to improve the test coverage. i wonder if you could take example of

libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/fetch_add.pass.cpp



https://github.com/llvm/llvm-project/pull/180333


More information about the libcxx-commits mailing list