annotate gcc/fortran/mathbuiltins.def @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Copyright (C) 2004-2017 Free Software Foundation, Inc.
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 This file is part of GCC.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 GCC is free software; you can redistribute it and/or modify it under
kono
parents:
diff changeset
6 the terms of the GNU General Public License as published by the Free
kono
parents:
diff changeset
7 Software Foundation; either version 3, or (at your option) any later
kono
parents:
diff changeset
8 version.
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
kono
parents:
diff changeset
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or
kono
parents:
diff changeset
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kono
parents:
diff changeset
13 for more details.
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
16 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
17 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 /* DEFINE_MATH_BUILTIN (CODE, NAME, ARGTYPE)
kono
parents:
diff changeset
20 NAME The name of the builtin
kono
parents:
diff changeset
21 SNAME The name of the builtin as a string
kono
parents:
diff changeset
22 ARGTYPE The type of the arguments. See f95-lang.c
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 Use DEFINE_MATH_BUILTIN_C if the complex versions of the builtin are
kono
parents:
diff changeset
25 also available. */
kono
parents:
diff changeset
26 DEFINE_MATH_BUILTIN_C (ACOS, "acos", 0)
kono
parents:
diff changeset
27 DEFINE_MATH_BUILTIN_C (ACOSH, "acosh", 0)
kono
parents:
diff changeset
28 DEFINE_MATH_BUILTIN_C (ASIN, "asin", 0)
kono
parents:
diff changeset
29 DEFINE_MATH_BUILTIN_C (ASINH, "asinh", 0)
kono
parents:
diff changeset
30 DEFINE_MATH_BUILTIN_C (ATAN, "atan", 0)
kono
parents:
diff changeset
31 DEFINE_MATH_BUILTIN_C (ATANH, "atanh", 0)
kono
parents:
diff changeset
32 DEFINE_MATH_BUILTIN (ATAN2, "atan2", 1)
kono
parents:
diff changeset
33 DEFINE_MATH_BUILTIN_C (COS, "cos", 0)
kono
parents:
diff changeset
34 DEFINE_MATH_BUILTIN_C (COSH, "cosh", 0)
kono
parents:
diff changeset
35 DEFINE_MATH_BUILTIN_C (EXP, "exp", 0)
kono
parents:
diff changeset
36 DEFINE_MATH_BUILTIN_C (LOG, "log", 0)
kono
parents:
diff changeset
37 DEFINE_MATH_BUILTIN_C (LOG10, "log10", 0)
kono
parents:
diff changeset
38 DEFINE_MATH_BUILTIN_C (SIN, "sin", 0)
kono
parents:
diff changeset
39 DEFINE_MATH_BUILTIN_C (SINH, "sinh", 0)
kono
parents:
diff changeset
40 DEFINE_MATH_BUILTIN_C (SQRT, "sqrt", 0)
kono
parents:
diff changeset
41 DEFINE_MATH_BUILTIN_C (TAN, "tan", 0)
kono
parents:
diff changeset
42 DEFINE_MATH_BUILTIN_C (TANH, "tanh", 0)
kono
parents:
diff changeset
43 DEFINE_MATH_BUILTIN (J0, "j0", 0)
kono
parents:
diff changeset
44 DEFINE_MATH_BUILTIN (J1, "j1", 0)
kono
parents:
diff changeset
45 DEFINE_MATH_BUILTIN (JN, "jn", 5)
kono
parents:
diff changeset
46 DEFINE_MATH_BUILTIN (Y0, "y0", 0)
kono
parents:
diff changeset
47 DEFINE_MATH_BUILTIN (Y1, "y1", 0)
kono
parents:
diff changeset
48 DEFINE_MATH_BUILTIN (YN, "yn", 5)
kono
parents:
diff changeset
49 DEFINE_MATH_BUILTIN (ERF, "erf", 0)
kono
parents:
diff changeset
50 DEFINE_MATH_BUILTIN (ERFC, "erfc", 0)
kono
parents:
diff changeset
51 DEFINE_MATH_BUILTIN (TGAMMA,"tgamma", 0)
kono
parents:
diff changeset
52 DEFINE_MATH_BUILTIN (LGAMMA,"lgamma", 0)
kono
parents:
diff changeset
53 DEFINE_MATH_BUILTIN (HYPOT, "hypot", 1)
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 /* OTHER_BUILTIN (CODE, NAME, PROTOTYPE_TYPE, CONST)
kono
parents:
diff changeset
56 For floating-point builtins that do not directly correspond to a
kono
parents:
diff changeset
57 Fortran intrinsic. This is used to map the different variants (float,
kono
parents:
diff changeset
58 double and long double) and to build the quad-precision decls. */
kono
parents:
diff changeset
59 OTHER_BUILTIN (CABS, "cabs", cabs, true)
kono
parents:
diff changeset
60 OTHER_BUILTIN (COPYSIGN, "copysign", 2, true)
kono
parents:
diff changeset
61 OTHER_BUILTIN (CPOW, "cpow", cpow, true)
kono
parents:
diff changeset
62 OTHER_BUILTIN (FABS, "fabs", 1, true)
kono
parents:
diff changeset
63 OTHER_BUILTIN (FMOD, "fmod", 2, true)
kono
parents:
diff changeset
64 OTHER_BUILTIN (FREXP, "frexp", frexp, false)
kono
parents:
diff changeset
65 OTHER_BUILTIN (LOGB, "logb", 1, true)
kono
parents:
diff changeset
66 OTHER_BUILTIN (LLROUND, "llround", llround, true)
kono
parents:
diff changeset
67 OTHER_BUILTIN (LROUND, "lround", lround, true)
kono
parents:
diff changeset
68 OTHER_BUILTIN (IROUND, "iround", iround, true)
kono
parents:
diff changeset
69 OTHER_BUILTIN (NEXTAFTER, "nextafter", 2, true)
kono
parents:
diff changeset
70 OTHER_BUILTIN (POW, "pow", 2, true)
kono
parents:
diff changeset
71 OTHER_BUILTIN (REMAINDER, "remainder", 2, true)
kono
parents:
diff changeset
72 OTHER_BUILTIN (RINT, "rint", 1, true)
kono
parents:
diff changeset
73 OTHER_BUILTIN (ROUND, "round", 1, true)
kono
parents:
diff changeset
74 OTHER_BUILTIN (SCALBN, "scalbn", scalbn, true)
kono
parents:
diff changeset
75 OTHER_BUILTIN (TRUNC, "trunc", 1, true)