[libc-commits] [libc] [libc] Add Q length modifier to support float128 conversions in printf (PR #203077)

Alex Strelnikov via libc-commits libc-commits at lists.llvm.org
Mon Jun 22 09:39:53 PDT 2026


================
@@ -605,36 +618,46 @@ class FloatToString {
   }
 };
 
-#if !defined(LIBC_TYPES_LONG_DOUBLE_IS_FLOAT64) &&                             \
-    !defined(LIBC_TYPES_LONG_DOUBLE_IS_DOUBLE_DOUBLE) &&                       \
-    !defined(LIBC_COPT_FLOAT_TO_STR_NO_SPECIALIZE_LD)
-// --------------------------- LONG DOUBLE FUNCTIONS ---------------------------
+#if !defined(LIBC_INTERNAL_FLOAT_TO_STR_LD_USE_RYU_IMPL) ||                    \
----------------
strel-12 wrote:

Sorry, not sure whether I've understood this one correctly - are you referring to the `FloatToString` specializations for `long double` (where only one will be enabled at a time), or something else I missed?

https://github.com/llvm/llvm-project/pull/203077


More information about the libc-commits mailing list