LCOV - code coverage report
Current view: top level - gcc/fortran - mathbuiltins.def (source / functions) Coverage Total Hit
Test: gcc.info Lines: 100.0 % 55 55
Test Date: 2025-07-12 13:27:34 Functions: - 0 0
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: - 0 0

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

Generated by: LCOV version 2.1-beta

LCOV profile is generated on x86_64 machine using following configure options: configure --disable-bootstrap --enable-coverage=opt --enable-languages=c,c++,fortran,go,jit,lto,rust,m2 --enable-host-shared. GCC test suite is run with the built compiler.