[libc-commits] [libc] 3d08377 - [libc] Fix compile error in MPFRWrapper when float128 is long double (#131821)
via libc-commits
libc-commits at lists.llvm.org
Tue Mar 18 09:12:48 PDT 2025
Author: OverMighty
Date: 2025-03-18T12:12:44-04:00
New Revision: 3d083777efd1649d156a8e6da77022f801cc70f5
URL: https://github.com/llvm/llvm-project/commit/3d083777efd1649d156a8e6da77022f801cc70f5
DIFF: https://github.com/llvm/llvm-project/commit/3d083777efd1649d156a8e6da77022f801cc70f5.diff
LOG: [libc] Fix compile error in MPFRWrapper when float128 is long double (#131821)
See https://lab.llvm.org/buildbot/#/builders/104/builds/18422.
Added:
Modified:
libc/utils/MPFRWrapper/MPFRUtils.cpp
Removed:
################################################################################
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp
index da7e4006d134d..fc260f4abed49 100644
--- a/libc/utils/MPFRWrapper/MPFRUtils.cpp
+++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp
@@ -401,7 +401,8 @@ template void explain_binary_operation_one_output_error(
template void explain_binary_operation_one_output_error(
Operation, const BinaryInput<long double> &, float16, double, RoundingMode);
#endif
-#ifdef LIBC_TYPES_HAS_FLOAT128
+#if defined(LIBC_TYPES_HAS_FLOAT128) && \
+ defined(LIBC_TYPES_FLOAT128_IS_NOT_LONG_DOUBLE)
template void explain_binary_operation_one_output_error(
Operation, const BinaryInput<float128> &, float128, double, RoundingMode);
#endif
@@ -629,7 +630,8 @@ template bool
compare_binary_operation_one_output(Operation, const BinaryInput<long double> &,
float16, double, RoundingMode);
#endif
-#ifdef LIBC_TYPES_HAS_FLOAT128
+#if defined(LIBC_TYPES_HAS_FLOAT128) && \
+ defined(LIBC_TYPES_FLOAT128_IS_NOT_LONG_DOUBLE)
template bool compare_binary_operation_one_output(Operation,
const BinaryInput<float128> &,
float128, double,
More information about the libc-commits
mailing list