Skip to content

Commit 3d08377

Browse files
authored
[libc] Fix compile error in MPFRWrapper when float128 is long double (llvm#131821)
See https://lab.llvm.org/buildbot/#/builders/104/builds/18422.
1 parent a4dc02c commit 3d08377

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libc/utils/MPFRWrapper/MPFRUtils.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ template void explain_binary_operation_one_output_error(
401401
template void explain_binary_operation_one_output_error(
402402
Operation, const BinaryInput<long double> &, float16, double, RoundingMode);
403403
#endif
404-
#ifdef LIBC_TYPES_HAS_FLOAT128
404+
#if defined(LIBC_TYPES_HAS_FLOAT128) && \
405+
defined(LIBC_TYPES_FLOAT128_IS_NOT_LONG_DOUBLE)
405406
template void explain_binary_operation_one_output_error(
406407
Operation, const BinaryInput<float128> &, float128, double, RoundingMode);
407408
#endif
@@ -629,7 +630,8 @@ template bool
629630
compare_binary_operation_one_output(Operation, const BinaryInput<long double> &,
630631
float16, double, RoundingMode);
631632
#endif
632-
#ifdef LIBC_TYPES_HAS_FLOAT128
633+
#if defined(LIBC_TYPES_HAS_FLOAT128) && \
634+
defined(LIBC_TYPES_FLOAT128_IS_NOT_LONG_DOUBLE)
633635
template bool compare_binary_operation_one_output(Operation,
634636
const BinaryInput<float128> &,
635637
float128, double,

0 commit comments

Comments
 (0)