misc_specifics.F90 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. ! Copyright (C) 2002-2022 Free Software Foundation, Inc.
  2. ! Contributed by Paul Brook <paul@nowt.org>
  3. !
  4. !This file is part of the GNU Fortran 95 runtime library (libgfortran).
  5. !
  6. !GNU libgfortran is free software; you can redistribute it and/or
  7. !modify it under the terms of the GNU General Public
  8. !License as published by the Free Software Foundation; either
  9. !version 3 of the License, or (at your option) any later version.
  10. !GNU libgfortran is distributed in the hope that it will be useful,
  11. !but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. !MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. !GNU General Public License for more details.
  14. !
  15. !Under Section 7 of GPL version 3, you are granted additional
  16. !permissions described in the GCC Runtime Library Exception, version
  17. !3.1, as published by the Free Software Foundation.
  18. !
  19. !You should have received a copy of the GNU General Public License and
  20. !a copy of the GCC Runtime Library Exception along with this program;
  21. !see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  22. !<http://www.gnu.org/licenses/>.
  23. !
  24. !This file is machine generated.
  25. #include "config.h"
  26. #include "kinds.inc"
  27. #if defined (HAVE_GFC_REAL_4) && defined (HAVE_GFC_INTEGER_4)
  28. elemental function _gfortran_specific__nint_4_4 (parm)
  29. real (kind=4) , intent (in) :: parm
  30. integer (kind=4) :: _gfortran_specific__nint_4_4
  31. _gfortran_specific__nint_4_4 = nint (parm)
  32. end function
  33. #endif
  34. #if defined (HAVE_GFC_REAL_8) && defined (HAVE_GFC_INTEGER_4)
  35. elemental function _gfortran_specific__nint_4_8 (parm)
  36. real (kind=8) , intent (in) :: parm
  37. integer (kind=4) :: _gfortran_specific__nint_4_8
  38. _gfortran_specific__nint_4_8 = nint (parm)
  39. end function
  40. #endif
  41. #if defined (HAVE_GFC_REAL_10) && defined (HAVE_GFC_INTEGER_4)
  42. elemental function _gfortran_specific__nint_4_10 (parm)
  43. real (kind=10) , intent (in) :: parm
  44. integer (kind=4) :: _gfortran_specific__nint_4_10
  45. _gfortran_specific__nint_4_10 = nint (parm)
  46. end function
  47. #endif
  48. #if defined (HAVE_GFC_REAL_16) && defined (HAVE_GFC_INTEGER_4)
  49. elemental function _gfortran_specific__nint_4_16 (parm)
  50. real (kind=16) , intent (in) :: parm
  51. integer (kind=4) :: _gfortran_specific__nint_4_16
  52. _gfortran_specific__nint_4_16 = nint (parm)
  53. end function
  54. #endif
  55. #if defined (HAVE_GFC_REAL_4) && defined (HAVE_GFC_INTEGER_8)
  56. elemental function _gfortran_specific__nint_8_4 (parm)
  57. real (kind=4) , intent (in) :: parm
  58. integer (kind=8) :: _gfortran_specific__nint_8_4
  59. _gfortran_specific__nint_8_4 = nint (parm)
  60. end function
  61. #endif
  62. #if defined (HAVE_GFC_REAL_8) && defined (HAVE_GFC_INTEGER_8)
  63. elemental function _gfortran_specific__nint_8_8 (parm)
  64. real (kind=8) , intent (in) :: parm
  65. integer (kind=8) :: _gfortran_specific__nint_8_8
  66. _gfortran_specific__nint_8_8 = nint (parm)
  67. end function
  68. #endif
  69. #if defined (HAVE_GFC_REAL_10) && defined (HAVE_GFC_INTEGER_8)
  70. elemental function _gfortran_specific__nint_8_10 (parm)
  71. real (kind=10) , intent (in) :: parm
  72. integer (kind=8) :: _gfortran_specific__nint_8_10
  73. _gfortran_specific__nint_8_10 = nint (parm)
  74. end function
  75. #endif
  76. #if defined (HAVE_GFC_REAL_16) && defined (HAVE_GFC_INTEGER_8)
  77. elemental function _gfortran_specific__nint_8_16 (parm)
  78. real (kind=16) , intent (in) :: parm
  79. integer (kind=8) :: _gfortran_specific__nint_8_16
  80. _gfortran_specific__nint_8_16 = nint (parm)
  81. end function
  82. #endif
  83. #if defined (HAVE_GFC_REAL_4) && defined (HAVE_GFC_INTEGER_16)
  84. elemental function _gfortran_specific__nint_16_4 (parm)
  85. real (kind=4) , intent (in) :: parm
  86. integer (kind=16) :: _gfortran_specific__nint_16_4
  87. _gfortran_specific__nint_16_4 = nint (parm)
  88. end function
  89. #endif
  90. #if defined (HAVE_GFC_REAL_8) && defined (HAVE_GFC_INTEGER_16)
  91. elemental function _gfortran_specific__nint_16_8 (parm)
  92. real (kind=8) , intent (in) :: parm
  93. integer (kind=16) :: _gfortran_specific__nint_16_8
  94. _gfortran_specific__nint_16_8 = nint (parm)
  95. end function
  96. #endif
  97. #if defined (HAVE_GFC_REAL_10) && defined (HAVE_GFC_INTEGER_16)
  98. elemental function _gfortran_specific__nint_16_10 (parm)
  99. real (kind=10) , intent (in) :: parm
  100. integer (kind=16) :: _gfortran_specific__nint_16_10
  101. _gfortran_specific__nint_16_10 = nint (parm)
  102. end function
  103. #endif
  104. #if defined (HAVE_GFC_REAL_16) && defined (HAVE_GFC_INTEGER_16)
  105. elemental function _gfortran_specific__nint_16_16 (parm)
  106. real (kind=16) , intent (in) :: parm
  107. integer (kind=16) :: _gfortran_specific__nint_16_16
  108. _gfortran_specific__nint_16_16 = nint (parm)
  109. end function
  110. #endif
  111. #if defined (HAVE_GFC_INTEGER_4)
  112. elemental function _gfortran_specific__char_1_i4 (parm)
  113. integer (kind=4) , intent (in) :: parm
  114. character (kind=1,len=1) :: _gfortran_specific__char_1_i4
  115. _gfortran_specific__char_1_i4 = char (parm, kind=1)
  116. end function
  117. #endif
  118. #if defined (HAVE_GFC_INTEGER_8)
  119. elemental function _gfortran_specific__char_1_i8 (parm)
  120. integer (kind=8) , intent (in) :: parm
  121. character (kind=1,len=1) :: _gfortran_specific__char_1_i8
  122. _gfortran_specific__char_1_i8 = char (parm, kind=1)
  123. end function
  124. #endif
  125. #if defined (HAVE_GFC_INTEGER_16)
  126. elemental function _gfortran_specific__char_1_i16 (parm)
  127. integer (kind=16) , intent (in) :: parm
  128. character (kind=1,len=1) :: _gfortran_specific__char_1_i16
  129. _gfortran_specific__char_1_i16 = char (parm, kind=1)
  130. end function
  131. #endif
  132. #if defined (HAVE_GFC_INTEGER_4)
  133. elemental function _gfortran_specific__len_1_i4 (parm)
  134. character (kind=1,len=*) , intent (in) :: parm
  135. integer (kind=4) :: _gfortran_specific__len_1_i4
  136. _gfortran_specific__len_1_i4 = len (parm)
  137. end function
  138. #endif
  139. #if defined (HAVE_GFC_INTEGER_8)
  140. elemental function _gfortran_specific__len_1_i8 (parm)
  141. character (kind=1,len=*) , intent (in) :: parm
  142. integer (kind=8) :: _gfortran_specific__len_1_i8
  143. _gfortran_specific__len_1_i8 = len (parm)
  144. end function
  145. #endif
  146. #if defined (HAVE_GFC_INTEGER_16)
  147. elemental function _gfortran_specific__len_1_i16 (parm)
  148. character (kind=1,len=*) , intent (in) :: parm
  149. integer (kind=16) :: _gfortran_specific__len_1_i16
  150. _gfortran_specific__len_1_i16 = len (parm)
  151. end function
  152. #endif
  153. #if defined (HAVE_GFC_INTEGER_4)
  154. elemental function _gfortran_specific__index_1_i4 (parm1, parm2)
  155. character (kind=1,len=*) , intent (in) :: parm1, parm2
  156. integer (kind=4) :: _gfortran_specific__index_1_i4
  157. _gfortran_specific__index_1_i4 = index (parm1, parm2)
  158. end function
  159. #endif
  160. #if defined (HAVE_GFC_INTEGER_8)
  161. elemental function _gfortran_specific__index_1_i8 (parm1, parm2)
  162. character (kind=1,len=*) , intent (in) :: parm1, parm2
  163. integer (kind=8) :: _gfortran_specific__index_1_i8
  164. _gfortran_specific__index_1_i8 = index (parm1, parm2)
  165. end function
  166. #endif
  167. #if defined (HAVE_GFC_INTEGER_16)
  168. elemental function _gfortran_specific__index_1_i16 (parm1, parm2)
  169. character (kind=1,len=*) , intent (in) :: parm1, parm2
  170. integer (kind=16) :: _gfortran_specific__index_1_i16
  171. _gfortran_specific__index_1_i16 = index (parm1, parm2)
  172. end function
  173. #endif