OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / libgfortran / intrinsics / erfc_scaled.c
1 /* Implementation of the ERFC_SCALED intrinsic.
2    Copyright (C) 2008 Free Software Foundation, Inc.
3
4 This file is part of the GNU Fortran runtime library (libgfortran).
5
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.
10
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.)
19
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.
24
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.  */
29
30 #include "libgfortran.h"
31
32 /* This implementation of ERFC_SCALED is based on the netlib algorithm
33    available at http://www.netlib.org/specfun/erf  */
34
35 #ifdef HAVE_GFC_REAL_4
36 #undef KIND
37 #define KIND 4
38 #include "erfc_scaled_inc.c"
39 #endif
40
41 #ifdef HAVE_GFC_REAL_8
42 #undef KIND
43 #define KIND 8
44 #include "erfc_scaled_inc.c"
45 #endif
46
47 #ifdef HAVE_GFC_REAL_10
48 #undef KIND
49 #define KIND 10
50 #include "erfc_scaled_inc.c"
51 #endif
52
53 #ifdef HAVE_GFC_REAL_16
54 #undef KIND
55 #define KIND 16
56 #include "erfc_scaled_inc.c"
57 #endif