[libcxx-commits] [PATCH] D124519: [libcxx] Switch __cxx_contention_t to int32_t on 32 bit AIX

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 12 09:01:28 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG39328a658181: [libcxx] Switch __cxx_contention_t to int32_t on 32 bit AIX (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124519/new/

https://reviews.llvm.org/D124519

Files:
  libcxx/include/atomic


Index: libcxx/include/atomic
===================================================================
--- libcxx/include/atomic
+++ libcxx/include/atomic
@@ -1451,11 +1451,11 @@
     : _Base(value) {}
 };
 
-#ifdef __linux__
+#if defined(__linux__) || (defined(_AIX) && !defined(__64BIT__))
     using __cxx_contention_t = int32_t;
 #else
     using __cxx_contention_t = int64_t;
-#endif //__linux__
+#endif // __linux__ || (_AIX && !__64BIT__)
 
 using __cxx_atomic_contention_t = __cxx_atomic_impl<__cxx_contention_t>;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124519.428960.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220512/cfae0141/attachment-0001.bin>


More information about the libcxx-commits mailing list