PR bootstrap/18939
[official-gcc.git] / libgfortran / intrinsics / hyper.c
blobec7f27d3d018e2c64fef2581cbbf8465027342d8
1 /* Wrapper for systems without the C99 acosh(), asinh(), and atanh() functions
2 Copyright (C) 2005 Free Software Foundation, Inc.
4 This file is part of the GNU Fortran 95 runtime library (libgfortran).
6 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 2 of the License, or (at your option) any later version.
11 In addition to the permissions in the GNU General Public License, the
12 Free Software Foundation gives you unlimited permission to link the
13 compiled version of this file into combinations with other programs,
14 and to distribute those combinations without any restriction coming
15 from the use of this file. (The General Public License restrictions
16 do apply in other respects; for example, they cover modification of
17 the file, and distribution when not linked into a combine
18 executable.)
20 Libgfortran is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
25 You should have received a copy of the GNU General Public
26 License along with libgfortran; see the file COPYING. If not,
27 write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
28 Boston, MA 02110-1301, USA. */
30 #include "config.h"
31 #include <math.h>
32 #include "libgfortran.h"
34 #if HAVE_ACOSH && !HAVE_ACOSHF
35 float
36 acoshf (float x)
38 return (float) acosh ((double) x);
40 #endif
42 #if HAVE_ASINH && !HAVE_ASINHF
43 float
44 asinhf (float x)
46 return (float) asinh ((double) x);
48 #endif
50 #if HAVE_ATANH && !HAVE_ATANHF
51 float
52 atanhf (float x)
54 return (float) atanh ((double) x);
56 #endif