[libc-commits] [libc] [libc][NFC] Swap ifdef logic for UInt128 (PR #75160)
via libc-commits
libc-commits at lists.llvm.org
Tue Dec 12 02:35:16 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Guillaume Chatelet (gchatelet)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/75160.diff
1 Files Affected:
- (modified) libc/src/__support/UInt128.h (+4-4)
``````````diff
diff --git a/libc/src/__support/UInt128.h b/libc/src/__support/UInt128.h
index 2f688f1f31cb56..0558e5095f9f51 100644
--- a/libc/src/__support/UInt128.h
+++ b/libc/src/__support/UInt128.h
@@ -11,12 +11,12 @@
#include "UInt.h"
-#if !defined(__SIZEOF_INT128__)
-using UInt128 = LIBC_NAMESPACE::cpp::UInt<128>;
-using Int128 = LIBC_NAMESPACE::cpp::Int<128>;
-#else
+#if defined(__SIZEOF_INT128__)
using UInt128 = __uint128_t;
using Int128 = __int128_t;
+#else
+using UInt128 = LIBC_NAMESPACE::cpp::UInt<128>;
+using Int128 = LIBC_NAMESPACE::cpp::Int<128>;
#endif
#endif // LLVM_LIBC_SRC___SUPPORT_UINT128_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/75160
More information about the libc-commits
mailing list