aboutsummaryrefslogtreecommitdiff
path: root/math/bits/math-finite.h
blob: c6b952736d411ced792aeeb3291095d59fac3029 (plain)
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
/* Entry points to finite-math-only compiler runs.
   Copyright (C) 2011 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library 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.

   The GNU C Library 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 the GNU C Library; if not, write to the Free
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
   02111-1307 USA.  */

#ifndef _MATH_H
# error "Never use <bits/math-finite.h> directly; include <math.h> instead."
#endif

/* acos.  */
extern double acos (double) __asm__ ("__acos_finite");
extern float acosf (float) __asm__ ("__acosf_finite");
#ifdef __MATH_DECLARE_LDOUBLE
extern long double acosl (long double) __asm__ ("__acosl_finite");
#endif

#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
/* acosh.  */
extern double acosh (double) __asm__ ("__acosh_finite");
extern float acoshf (float) __asm__ ("__acoshf_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double acoshl (long double) __asm__ ("__acoshl_finite");
# endif
#endif

/* asin.  */
extern double asin (double) __asm__ ("__asin_finite");
extern float asinf (float) __asm__ ("__asinf_finite");
#ifdef __MATH_DECLARE_LDOUBLE
extern long double asinl (long double) __asm__ ("__asinl_finite");
#endif

/* atan2.  */
extern double atan2 (double, double) __asm__ ("__atan2_finite");
extern float atan2f (float, float) __asm__ ("__atan2f_finite");
#ifdef __MATH_DECLARE_LDOUBLE
extern long double atan2l (long double, long double) __asm__ ("__atan2l_finite");
#endif

#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
/* atanh.  */
extern double atanh (double) __asm__ ("__atanh_finite");
extern float atanhf (float) __asm__ ("__atanhf_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double atanhl (long double) __asm__ ("__atanhl_finite");
# endif
#endif

/* cosh.  */
extern double cosh (double) __asm__ ("__cosh_finite");
extern float coshf (float) __asm__ ("__coshf_finite");
#ifdef __MATH_DECLARE_LDOUBLE
extern long double coshl (long double) __asm__ ("__coshl_finite");
#endif

#ifdef __USE_GNU
/* exp10.  */
extern double exp10 (double) __asm__ ("__exp10_finite");
extern float exp10f (float) __asm__ ("__exp10f_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double exp10l (long double) __asm__ ("__exp10l_finite");
# endif

/* pow10.  */
extern double pow10 (double) __asm__ ("__exp10_finite");
extern float pow10f (float) __asm__ ("__exp10f_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double pow10l (long double) __asm__ ("__exp10l_finite");
# endif
#endif

#ifdef __USE_ISOC99
/* exp2.  */
extern double exp2 (double) __asm__ ("__exp2_finite");
extern float exp2f (float) __asm__ ("__exp2f_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double exp2l (long double) __asm__ ("__exp2l_finite");
# endif
#endif

/* fmod.  */
extern double fmod (double, double) __asm__ ("__fmod_finite");
extern float fmodf (float, float) __asm__ ("__fmodf_finite");
#ifdef __MATH_DECLARE_LDOUBLE
extern long double fmodl (long double, long double) __asm__ ("__fmodl_finite");
#endif

#ifdef __USE_ISOC99
/* hypot.  */
extern double hypot (double, double) __asm__ ("__hypot_finite");
extern float hypotf (float, float) __asm__ ("__hypotf_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double hypotl (long double, long double) __asm__ ("__hypotl_finite");
# endif
#endif

#if defined __USE_MISC || defined __USE_XOPEN
/* j0.  */
extern double j0 (double) __asm__ ("__j0_finite");
extern float j0f (float) __asm__ ("__j0f_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double j0l (long double) __asm__ ("__j0l_finite");
# endif

/* y0.  */
extern double y0 (double) __asm__ ("__y0_finite");
extern float y0f (float) __asm__ ("__y0f_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double y0l (long double) __asm__ ("__y0l_finite");
# endif

/* j1.  */
extern double j1 (double) __asm__ ("__j1_finite");
extern float j1f (float) __asm__ ("__j1f_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double j1l (long double) __asm__ ("__j1l_finite");
# endif

/* y1.  */
extern double y1 (double) __asm__ ("__y1_finite");
extern float y1f (float) __asm__ ("__y1f_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double y1l (long double) __asm__ ("__y1l_finite");
# endif

/* jn.  */
extern double jn (int, double) __asm__ ("__jn_finite");
extern float jnf (int, float) __asm__ ("__jnf_finite");
# ifdef __MATH_DECLARE_LDOUBLE
extern long double jnl (int, long double) __asm__ ("__jnl_finite");
# endif