Guest User

Untitled

a guest
Mar 1st, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. 206 #ifdef _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT
  2. 207 # if defined __LONG_DOUBLE_IEEE128__
  3. 208 // long double is __ieee128, define traits for __ibm128
  4. 209 template<>
  5. 210 ¦ struct __numeric_traits_floating<__ibm128>
  6. 211 ¦ {
  7. 212 ¦ ¦ static const int __max_digits10 = 33;
  8. 213 ¦ ¦ static const bool __is_signed = true;
  9. 214 ¦ ¦ static const int __digits10 = 31;
  10. 215 ¦ ¦ static const int __max_exponent10 = 308;
  11. 216 ¦ };
  12. 217 template<>
  13. 218 ¦ struct __numeric_traits<__ibm128>
  14. 219 ¦ : public __numeric_traits_floating<__ibm128>
  15. 220 ¦ { };
  16. 221 # elif defined __LONG_DOUBLE_IBM128__
  17. 222 // long double is __ibm128, define traits for __ieee128
  18. 223 template<>
  19. 224 ¦ struct __numeric_traits_floating<__ieee128>
  20. 225 ¦ {
  21. 226 ¦ ¦ static const int __max_digits10 = 36;
  22. 227 ¦ ¦ static const bool __is_signed = true;
  23. 228 ¦ ¦ static const int __digits10 = 33;
  24. 229 ¦ ¦ static const int __max_exponent10 = 4932;
  25. 230 ¦ };
  26. 231 template<>
  27. 232 ¦ struct __numeric_traits<__ieee128>
  28. 233 ¦ : public __numeric_traits_floating<__ieee128>
  29. 234 ¦ { };
  30. 235 # endif
  31. 236 #endif
Advertisement
Add Comment
Please, Sign In to add comment