[libc-commits] [libc] [libc][NFC] Swap ifdef logic for UInt128 (PR #75160)
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Tue Dec 12 02:34:46 PST 2023
https://github.com/gchatelet created https://github.com/llvm/llvm-project/pull/75160
None
>From 77ea088f03bb44f39364335646118577a1cebfa4 Mon Sep 17 00:00:00 2001
From: Guillaume Chatelet <gchatelet at google.com>
Date: Tue, 12 Dec 2023 10:34:23 +0000
Subject: [PATCH] [libc][NFC] Swap ifdef logic for UInt128
---
libc/src/__support/UInt128.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libc/src/__support/UInt128.h b/libc/src/__support/UInt128.h
index 2f688f1f31cb5..0558e5095f9f5 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
More information about the libc-commits
mailing list