[libc-commits] [libc] 2bab0e0 - [libc][NFC] Swap ifdef logic for UInt128 (#75160)

via libc-commits libc-commits at lists.llvm.org
Tue Dec 12 02:44:31 PST 2023


Author: Guillaume Chatelet
Date: 2023-12-12T11:44:27+01:00
New Revision: 2bab0e01676ce7c9609a60bf86cb07c17f6080f0

URL: https://github.com/llvm/llvm-project/commit/2bab0e01676ce7c9609a60bf86cb07c17f6080f0
DIFF: https://github.com/llvm/llvm-project/commit/2bab0e01676ce7c9609a60bf86cb07c17f6080f0.diff

LOG: [libc][NFC] Swap ifdef logic for UInt128 (#75160)

Added: 
    

Modified: 
    libc/src/__support/UInt128.h

Removed: 
    


################################################################################
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


        


More information about the libc-commits mailing list