[libc-commits] [libc] 4275a73 - [libc] Fix long double is double double const (#113258)

via libc-commits libc-commits at lists.llvm.org
Tue Oct 22 07:32:01 PDT 2024


Author: Michael Jones
Date: 2024-10-22T07:31:57-07:00
New Revision: 4275a731249c5becec666f47d26254695fd7f468

URL: https://github.com/llvm/llvm-project/commit/4275a731249c5becec666f47d26254695fd7f468
DIFF: https://github.com/llvm/llvm-project/commit/4275a731249c5becec666f47d26254695fd7f468.diff

LOG: [libc] Fix long double is double double const (#113258)

Turns out for double double LDBL_MANT_DIG == 106. This patch fixes the
constant. Should fix the ppc buildbot.

Previously:
https://github.com/llvm/llvm-project/pull/113235
https://github.com/llvm/llvm-project/issues/113237
https://github.com/llvm/llvm-project/pull/91651

Added: 
    

Modified: 
    libc/src/__support/macros/properties/types.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/macros/properties/types.h b/libc/src/__support/macros/properties/types.h
index 5ea54a4f9ef9dd..30c742c007ca19 100644
--- a/libc/src/__support/macros/properties/types.h
+++ b/libc/src/__support/macros/properties/types.h
@@ -27,7 +27,7 @@
 #define LIBC_TYPES_LONG_DOUBLE_IS_X86_FLOAT80
 #elif (LDBL_MANT_DIG == 113)
 #define LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128
-#elif (LDBL_MANT_DIG == 103)
+#elif (LDBL_MANT_DIG == 106)
 #define LIBC_TYPES_LONG_DOUBLE_IS_DOUBLE_DOUBLE
 #endif
 


        


More information about the libc-commits mailing list