kinds-override.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Header used to override things detected by the mk-kinds-h.sh script.
  2. Copyright (C) 2010-2022 Free Software Foundation, Inc.
  3. This file is part of the GNU Fortran runtime library (libgfortran).
  4. Libgfortran is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. Libgfortran is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. Under Section 7 of GPL version 3, you are granted additional
  13. permissions described in the GCC Runtime Library Exception, version
  14. 3.1, as published by the Free Software Foundation.
  15. You should have received a copy of the GNU General Public License and
  16. a copy of the GCC Runtime Library Exception along with this program;
  17. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. /* Ensure that TFmode is available under. */
  20. #if defined(GFC_REAL_16_IS_FLOAT128) && !defined(HAVE_FLOAT128)
  21. # error "Where has __float128 gone?"
  22. #endif
  23. /* Keep these conditions on one line so grep can filter it out. */
  24. #if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG_DOUBLE__ == 16
  25. typedef __float128 GFC_REAL_17;
  26. typedef _Complex float __attribute__((mode(KC))) GFC_COMPLEX_17;
  27. #define HAVE_GFC_REAL_17
  28. #define HAVE_GFC_COMPLEX_17
  29. #define GFC_REAL_17_HUGE 1.18973149535723176508575932662800702e4932q
  30. #define GFC_REAL_17_LITERAL_SUFFIX q
  31. #define GFC_REAL_17_LITERAL(X) (X ## q)
  32. #define GFC_REAL_17_DIGITS 113
  33. #define GFC_REAL_17_RADIX 2
  34. #endif