1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
|
/* Declarations of various C99 functions
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of the GNU Fortran 95 runtime library (libgfortran).
Libgfortran is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Libgfortran is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with libgfortran; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
/* As a special exception, if you link this library with other files,
some of which are compiled with GCC, to produce an executable,
this library does not by itself cause the resulting executable
to be covered by the GNU General Public License.
This exception does not however invalidate any other reasons why
the executable file might be covered by the GNU General Public License. */
#ifndef C99_PROTOS_H
#define C99_PROTOS_H
/* float variants of libm functions */
#ifndef HAVE_ACOSF
extern float acosf(float);
#endif
#ifndef HAVE_ACOSHF
extern float acoshf(float);
#endif
#ifndef HAVE_ASINF
extern float asinf(float);
#endif
#ifndef HAVE_ASINHF
extern float asinhf(float);
#endif
#ifndef HAVE_ATAN2F
extern float atan2f(float, float);
#endif
#ifndef HAVE_ATANF
extern float atanf(float);
#endif
#ifndef HAVE_ATANHF
extern float atanhf(float);
#endif
#ifndef HAVE_CEILF
extern float ceilf(float);
#endif
#ifndef HAVE_COPYSIGNF
extern float copysignf(float, float);
#endif
#ifndef HAVE_COSF
extern float cosf(float);
#endif
#ifndef HAVE_COSHF
extern float coshf(float);
#endif
#ifndef HAVE_EXPF
extern float expf(float);
#endif
#ifndef HAVE_FABSF
extern float fabsf(float);
#endif
#ifndef HAVE_FLOORF
extern float floorf(float);
#endif
#ifndef HAVE_FREXPF
extern float frexpf(float, int *);
#endif
#ifndef HAVE_HYPOTF
extern float hypotf(float, float);
#endif
#ifndef HAVE_LOGF
extern float logf(float);
#endif
#ifndef HAVE_LOG10F
extern float log10f(float);
#endif
#ifndef HAVE_SCALBN
extern double scalbn(double, int);
#endif
#ifndef HAVE_SCALBNF
extern float scalbnf(float, int);
#endif
#ifndef HAVE_SINF
extern float sinf(float);
#endif
#ifndef HAVE_SINHF
extern float sinhf(float);
#endif
#ifndef HAVE_SQRTF
extern float sqrtf(float);
#endif
#ifndef HAVE_TANF
extern float tanf(float);
#endif
#ifndef HAVE_TANHF
extern float tanhf(float);
#endif
#ifndef HAVE_TRUNC
extern double trunc(double);
#endif
#ifndef HAVE_TRUNCF
extern float truncf(float);
#endif
#ifndef HAVE_NEXTAFTERF
extern float nextafterf(float, float);
#endif
#ifndef HAVE_POWF
extern float powf(float, float);
#endif
#ifndef HAVE_ROUND
extern double round(double);
#endif
#ifndef HAVE_ROUNDF
extern float roundf(float);
#endif
/* log10l is needed on all platforms for decimal I/O */
#ifndef HAVE_LOG10L
#define HAVE_LOG10L
extern long double log10l(long double);
#endif
/* complex math functions */
#if !defined(HAVE_CABSF)
#define HAVE_CABSF
extern float cabsf (float complex);
#endif
#if !defined(HAVE_CABS)
#define HAVE_CABS
extern double cabs (double complex);
#endif
#if !defined(HAVE_CABSL) && defined(HAVE_HYPOTL)
#define HAVE_CABSL
extern long double cabsl (long double complex);
#endif
#if !defined(HAVE_CARGF)
#define HAVE_CARGF
extern float cargf (float complex);
#endif
#if !defined(HAVE_CARG)
#define HAVE_CARG
extern double carg (double complex);
#endif
#if !defined(HAVE_CARGL) && defined(HAVE_ATAN2L)
#define HAVE_CARGL
extern long double cargl (long double complex);
#endif
#if !defined(HAVE_CEXPF)
#define HAVE_CEXPF
extern float complex cexpf (float complex);
#endif
#if !defined(HAVE_CEXP)
#define HAVE_CEXP
extern double complex cexp (double complex);
#endif
#if !defined(HAVE_CEXPL) && defined(HAVE_COSL) && defined(HAVE_SINL) && defined(EXPL)
#define HAVE_CEXPL
extern long double complex cexpl (long double complex);
#endif
#if !defined(HAVE_CLOGF)
#define HAVE_CLOGF
extern float complex clogf (float complex);
#endif
#if !defined(HAVE_CLOG)
#define HAVE_CLOG
extern double complex clog (double complex);
#endif
#if !defined(HAVE_CLOGL) && defined(HAVE_LOGL) && defined(HAVE_CABSL) && defined(HAVE_CARGL)
#define HAVE_CLOGL
extern long double complex clogl (long double complex);
#endif
#if !defined(HAVE_CLOG10F)
#define HAVE_CLOG10F
extern float complex clog10f (float complex);
#endif
#if !defined(HAVE_CLOG10)
#define HAVE_CLOG10
extern double complex clog10 (double complex);
#endif
#if !defined(HAVE_CLOG10L) && defined(HAVE_LOG10L) && defined(HAVE_CABSL) && defined(HAVE_CARGL)
#define HAVE_CLOG10L
extern long double complex clog10l (long double complex);
#endif
#if !defined(HAVE_CPOWF)
#define HAVE_CPOWF
extern float complex cpowf (float complex, float complex);
#endif
#if !defined(HAVE_CPOW)
#define HAVE_CPOW
extern double complex cpow (double complex, double complex);
#endif
#if !defined(HAVE_CPOWL) && defined(HAVE_CEXPL) && defined(HAVE_CLOGL)
#define HAVE_CPOWL
extern long double complex cpowl (long double complex, long double complex);
#endif
#if !defined(HAVE_CSQRTF)
#define HAVE_CSQRTF
extern float complex csqrtf (float complex);
#endif
#if !defined(HAVE_CSQRT)
#define HAVE_CSQRT
extern double complex csqrt (double complex);
#endif
#if !defined(HAVE_CSQRTL) && defined(HAVE_COPYSIGNL) && defined(HAVE_SQRTL) && defined(HAVE_FABSL) && defined(HAVE_HYPOTL)
#define HAVE_CSQRTL
extern long double complex csqrtl (long double complex);
#endif
#if !defined(HAVE_CSINHF)
#define HAVE_CSINHF
extern float complex csinhf (float complex);
#endif
#if !defined(HAVE_CSINH)
#define HAVE_CSINH
extern double complex csinh (double complex);
#endif
#if !defined(HAVE_CSINHL) && defined(HAVE_COSL) && defined(HAVE_COSHL) && defined(HAVE_SINL) && defined(HAVE_SINHL)
#define HAVE_CSINHL
extern long double complex csinhl (long double complex);
#endif
#if !defined(HAVE_CCOSHF)
#define HAVE_CCOSHF
extern float complex ccoshf (float complex);
#endif
#if !defined(HAVE_CCOSH)
#define HAVE_CCOSH
extern double complex ccosh (double complex);
#endif
#if !defined(HAVE_CCOSHL) && defined(HAVE_COSL) && defined(HAVE_COSHL) && defined(HAVE_SINL) && defined(HAVE_SINHL)
#define HAVE_CCOSHL
extern long double complex ccoshl (long double complex);
#endif
#if !defined(HAVE_CTANHF)
#define HAVE_CTANHF
extern float complex ctanhf (float complex);
#endif
#if !defined(HAVE_CTANH)
#define HAVE_CTANH
extern double complex ctanh (double complex);
#endif
#if !defined(HAVE_CTANHL) && defined(HAVE_TANL) && defined(HAVE_TANHL)
#define HAVE_CTANHL
extern long double complex ctanhl (long double complex);
#endif
#if !defined(HAVE_CSINF)
#define HAVE_CSINF
extern float complex csinf (float complex);
#endif
#if !defined(HAVE_CSIN)
#define HAVE_CSIN
extern double complex csin (double complex);
#endif
#if !defined(HAVE_CSINL) && defined(HAVE_COSL) && defined(HAVE_COSHL) && defined(HAVE_SINL) && defined(HAVE_SINHL)
#define HAVE_CSINL
extern long double complex csinl (long double complex);
#endif
#if !defined(HAVE_CCOSF)
#define HAVE_CCOSF
extern float complex ccosf (float complex);
#endif
#if !defined(HAVE_CCOS)
#define HAVE_CCOS
extern double complex ccos (double complex);
#endif
#if !defined(HAVE_CCOSL) && defined(HAVE_COSL) && defined(HAVE_COSHL) && defined(HAVE_SINL) && defined(HAVE_SINHL)
#define HAVE_CCOSL
extern long double complex ccosl (long double complex);
#endif
#if !defined(HAVE_CTANF)
#define HAVE_CTANF
extern float complex ctanf (float complex);
#endif
#if !defined(HAVE_CTAN)
#define HAVE_CTAN
extern double complex ctan (double complex);
#endif
#if !defined(HAVE_CTANL) && defined(HAVE_TANL) && defined(HAVE_TANHL)
#define HAVE_CTANL
extern long double complex ctanl (long double complex);
#endif
#endif /* C99_PROTOS_H */
|