[libcxx-commits] [libcxx] [libc++] Implement P0528R3 `std::atomic` CAS for types with paddings (PR #76180)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 3 11:28:27 PDT 2026


================
@@ -0,0 +1,81 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP___ATOMIC_SUPPORT_COMMON_H
----------------
ldionne wrote:

I think I would rather leave this header outside of `__atomic/support`: `__atomic/support` is intended purely for the platform-specific API. Since this isn't that, I'd suggest e.g. `__atomic/clear_padding.h` or anything else that makes sense, just not nested under `/support`.

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


More information about the libcxx-commits mailing list