Skip to content

Commit

Permalink
Change conditional for PPC64
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Aug 26, 2024
1 parent 0c10bd5 commit 8796af4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/to_chars_float_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,15 @@ to_chars_result to_chars_hex(char* first, char* last, Real value, int precision)
typename std::conditional<std::is_same<Real, float>::value, ieee754_binary32,
typename std::conditional<std::is_same<Real, double>::value, ieee754_binary64,
#ifdef BOOST_CHARCONV_HAS_FLOAT128
typename std::conditional<std::is_same<Real, __float128>::value || BOOST_CHARCONV_LDBL_BITS == 128, ieee754_binary128, ieee754_binary80>::type

typename std::conditional<std::is_same<Real, __float128>::value || BOOST_CHARCONV_LDBL_BITS == 128, ieee754_binary128,
#if defined(__ppc64__)
ieee754_binary64
#else
ieee754_binary80
#endif
>::type

#elif BOOST_CHARCONV_LDBL_BITS == 128
ieee754_binary128
#elif BOOST_CHARCONV_LDBL_BITS == 80
Expand Down

0 comments on commit 8796af4

Please sign in to comment.