1 | /** @file
|
---|
2 | * innotek Portable Runtime / No-CRT - math.h.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2007 innotek GmbH
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License as published by the Free Software Foundation,
|
---|
12 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | *
|
---|
16 | * If you received this file as part of a commercial VirtualBox
|
---|
17 | * distribution, then only the terms of your commercial VirtualBox
|
---|
18 | * license agreement apply instead of the previous paragraph.
|
---|
19 | *
|
---|
20 | * --------------------------------------------------------------------
|
---|
21 | *
|
---|
22 | * This code is based on:
|
---|
23 | *
|
---|
24 | * from: @(#)fdlibm.h 5.1 93/09/24
|
---|
25 | * $FreeBSD: src/lib/msun/src/math.h,v 1.61 2005/04/16 21:12:47 das Exp $
|
---|
26 | * FreeBSD HEAD 2005-06-xx
|
---|
27 | *
|
---|
28 | * ====================================================
|
---|
29 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
---|
30 | *
|
---|
31 | * Developed at SunPro, a Sun Microsystems, Inc. business.
|
---|
32 | * Permission to use, copy, modify, and distribute this
|
---|
33 | * software is freely granted, provided that this notice
|
---|
34 | * is preserved.
|
---|
35 | * ====================================================
|
---|
36 | */
|
---|
37 |
|
---|
38 | #ifndef ___iprt_nocrt_math_h
|
---|
39 | #define ___iprt_nocrt_math_h
|
---|
40 |
|
---|
41 | #if !defined(__GNUC__) /* && !defined(__YOUR_COMPILER__) */
|
---|
42 | # error "IPRT: Adjust this header for your compiler"
|
---|
43 | #endif
|
---|
44 |
|
---|
45 | #include <iprt/types.h>
|
---|
46 | /*#include <machine/_limits.h>*/
|
---|
47 |
|
---|
48 | /* from sys/cdefs.h */
|
---|
49 | #if defined(__GNUC__) && !defined(__INTEL_COMPILER)
|
---|
50 | #define __GNUC_PREREQ__(ma, mi) \
|
---|
51 | (__GNUC__ > (ma) || __GNUC__ == (ma) && __GNUC_MINOR__ >= (mi))
|
---|
52 | #else
|
---|
53 | #define __GNUC_PREREQ__(ma, mi) 0
|
---|
54 | #endif
|
---|
55 | #define __pure2
|
---|
56 |
|
---|
57 |
|
---|
58 | /*
|
---|
59 | * ANSI/POSIX
|
---|
60 | */
|
---|
61 | extern const union __infinity_un {
|
---|
62 | unsigned char __uc[8];
|
---|
63 | double __ud;
|
---|
64 | } RT_NOCRT(__infinity);
|
---|
65 |
|
---|
66 | extern const union __nan_un {
|
---|
67 | unsigned char __uc[sizeof(float)];
|
---|
68 | float __uf;
|
---|
69 | } RT_NOCRT(__nan);
|
---|
70 |
|
---|
71 | #if __GNUC_PREREQ__(3, 3) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800)
|
---|
72 | #define __MATH_BUILTIN_CONSTANTS
|
---|
73 | #endif
|
---|
74 |
|
---|
75 | #if __GNUC_PREREQ__(3, 0) && !defined(__INTEL_COMPILER)
|
---|
76 | #define __MATH_BUILTIN_RELOPS
|
---|
77 | #endif
|
---|
78 |
|
---|
79 | #ifdef __MATH_BUILTIN_CONSTANTS
|
---|
80 | #define HUGE_VAL __builtin_huge_val()
|
---|
81 | #else
|
---|
82 | #define HUGE_VAL (RT_NOCRT(__infinity).__ud)
|
---|
83 | #endif
|
---|
84 |
|
---|
85 | #if 1/* __ISO_C_VISIBLE >= 1999*/
|
---|
86 | #define FP_ILOGB0 (-__INT_MAX)
|
---|
87 | #define FP_ILOGBNAN __INT_MAX
|
---|
88 |
|
---|
89 | #ifdef __MATH_BUILTIN_CONSTANTS
|
---|
90 | #define HUGE_VALF __builtin_huge_valf()
|
---|
91 | #define HUGE_VALL __builtin_huge_vall()
|
---|
92 | #define INFINITY __builtin_inf()
|
---|
93 | #define NAN __builtin_nan("")
|
---|
94 | #else
|
---|
95 | #define HUGE_VALF (float)HUGE_VAL
|
---|
96 | #define HUGE_VALL (long double)HUGE_VAL
|
---|
97 | #define INFINITY HUGE_VALF
|
---|
98 | #define NAN (__nan.__uf)
|
---|
99 | #endif /* __MATH_BUILTIN_CONSTANTS */
|
---|
100 |
|
---|
101 | #define MATH_ERRNO 1
|
---|
102 | #define MATH_ERREXCEPT 2
|
---|
103 | #define math_errhandling MATH_ERREXCEPT
|
---|
104 |
|
---|
105 | /* XXX We need a <machine/math.h>. */
|
---|
106 | #if defined(__ia64__) || defined(__sparc64__)
|
---|
107 | #define FP_FAST_FMA
|
---|
108 | #endif
|
---|
109 | #ifdef __ia64__
|
---|
110 | #define FP_FAST_FMAL
|
---|
111 | #endif
|
---|
112 | #define FP_FAST_FMAF
|
---|
113 |
|
---|
114 | /* Symbolic constants to classify floating point numbers. */
|
---|
115 | #define FP_INFINITE 0x01
|
---|
116 | #define FP_NAN 0x02
|
---|
117 | #define FP_NORMAL 0x04
|
---|
118 | #define FP_SUBNORMAL 0x08
|
---|
119 | #define FP_ZERO 0x10
|
---|
120 | #define fpclassify(x) \
|
---|
121 | ((sizeof (x) == sizeof (float)) ? RT_NOCRT(__fpclassifyf)(x) \
|
---|
122 | : (sizeof (x) == sizeof (double)) ? RT_NOCRT(__fpclassifyd)(x) \
|
---|
123 | : RT_NOCRT(__fpclassifyl)(x))
|
---|
124 |
|
---|
125 | #define isfinite(x) \
|
---|
126 | ((sizeof (x) == sizeof (float)) ? RT_NOCRT(__isfinitef)(x) \
|
---|
127 | : (sizeof (x) == sizeof (double)) ? RT_NOCRT(__isfinite)(x) \
|
---|
128 | : RT_NOCRT(__isfinitel)(x))
|
---|
129 | #define isinf(x) \
|
---|
130 | ((sizeof (x) == sizeof (float)) ? RT_NOCRT(__isinff)(x) \
|
---|
131 | : (sizeof (x) == sizeof (double)) ? isinf(x) \
|
---|
132 | : RT_NOCRT(__isinfl)(x))
|
---|
133 | #define isnan(x) \
|
---|
134 | ((sizeof (x) == sizeof (float)) ? isnanf(x) \
|
---|
135 | : (sizeof (x) == sizeof (double)) ? isnan(x) \
|
---|
136 | : RT_NOCRT(__isnanl)(x))
|
---|
137 | #define isnormal(x) \
|
---|
138 | ((sizeof (x) == sizeof (float)) ? RT_NOCRT(__isnormalf)(x) \
|
---|
139 | : (sizeof (x) == sizeof (double)) ? RT_NOCRT(__isnormal)(x) \
|
---|
140 | : RT_NOCRT(__isnormall)(x))
|
---|
141 |
|
---|
142 | #ifdef __MATH_BUILTIN_RELOPS
|
---|
143 | #define isgreater(x, y) __builtin_isgreater((x), (y))
|
---|
144 | #define isgreaterequal(x, y) __builtin_isgreaterequal((x), (y))
|
---|
145 | #define isless(x, y) __builtin_isless((x), (y))
|
---|
146 | #define islessequal(x, y) __builtin_islessequal((x), (y))
|
---|
147 | #define islessgreater(x, y) __builtin_islessgreater((x), (y))
|
---|
148 | #define isunordered(x, y) __builtin_isunordered((x), (y))
|
---|
149 | #else
|
---|
150 | #define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y))
|
---|
151 | #define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y))
|
---|
152 | #define isless(x, y) (!isunordered((x), (y)) && (x) < (y))
|
---|
153 | #define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y))
|
---|
154 | #define islessgreater(x, y) (!isunordered((x), (y)) && \
|
---|
155 | ((x) > (y) || (y) > (x)))
|
---|
156 | #define isunordered(x, y) (isnan(x) || isnan(y))
|
---|
157 | #endif /* __MATH_BUILTIN_RELOPS */
|
---|
158 |
|
---|
159 | #define signbit(x) \
|
---|
160 | ((sizeof (x) == sizeof (float)) ? RT_NOCRT(__signbitf)(x) \
|
---|
161 | : (sizeof (x) == sizeof (double)) ? RT_NOCRT(__signbit)(x) \
|
---|
162 | : RT_NOCRT(__signbitl)(x))
|
---|
163 |
|
---|
164 | typedef double double_t;
|
---|
165 | typedef float float_t;
|
---|
166 | #endif /* __ISO_C_VISIBLE >= 1999 */
|
---|
167 |
|
---|
168 | /*
|
---|
169 | * XOPEN/SVID
|
---|
170 | */
|
---|
171 | #if 1/* __BSD_VISIBLE || __XSI_VISIBLE*/
|
---|
172 | #define M_E 2.7182818284590452354 /* e */
|
---|
173 | #define M_LOG2E 1.4426950408889634074 /* log 2e */
|
---|
174 | #define M_LOG10E 0.43429448190325182765 /* log 10e */
|
---|
175 | #define M_LN2 0.69314718055994530942 /* log e2 */
|
---|
176 | #define M_LN10 2.30258509299404568402 /* log e10 */
|
---|
177 | #define M_PI 3.14159265358979323846 /* pi */
|
---|
178 | #define M_PI_2 1.57079632679489661923 /* pi/2 */
|
---|
179 | #define M_PI_4 0.78539816339744830962 /* pi/4 */
|
---|
180 | #define M_1_PI 0.31830988618379067154 /* 1/pi */
|
---|
181 | #define M_2_PI 0.63661977236758134308 /* 2/pi */
|
---|
182 | #define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */
|
---|
183 | #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
|
---|
184 | #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
|
---|
185 |
|
---|
186 | #define MAXFLOAT ((float)3.40282346638528860e+38)
|
---|
187 | extern int RT_NOCRT(signgam);
|
---|
188 | #endif /* __BSD_VISIBLE || __XSI_VISIBLE */
|
---|
189 |
|
---|
190 | #if 1/* __BSD_VISIBLE*/
|
---|
191 | #if 0
|
---|
192 | /* Old value from 4.4BSD-Lite math.h; this is probably better. */
|
---|
193 | #define HUGE HUGE_VAL
|
---|
194 | #else
|
---|
195 | #define HUGE MAXFLOAT
|
---|
196 | #endif
|
---|
197 | #endif /* __BSD_VISIBLE */
|
---|
198 |
|
---|
199 | /*
|
---|
200 | * Most of these functions depend on the rounding mode and have the side
|
---|
201 | * effect of raising floating-point exceptions, so they are not declared
|
---|
202 | * as __pure2. In C99, FENV_ACCESS affects the purity of these functions.
|
---|
203 | */
|
---|
204 | __BEGIN_DECLS
|
---|
205 | /*
|
---|
206 | * ANSI/POSIX
|
---|
207 | */
|
---|
208 | int RT_NOCRT(__fpclassifyd)(double) __pure2;
|
---|
209 | int RT_NOCRT(__fpclassifyf)(float) __pure2;
|
---|
210 | int RT_NOCRT(__fpclassifyl)(long double) __pure2;
|
---|
211 | int RT_NOCRT(__isfinitef)(float) __pure2;
|
---|
212 | int RT_NOCRT(__isfinite)(double) __pure2;
|
---|
213 | int RT_NOCRT(__isfinitel)(long double) __pure2;
|
---|
214 | int RT_NOCRT(__isinff)(float) __pure2;
|
---|
215 | int RT_NOCRT(__isinfl)(long double) __pure2;
|
---|
216 | int RT_NOCRT(__isnanl)(long double) __pure2;
|
---|
217 | int RT_NOCRT(__isnormalf)(float) __pure2;
|
---|
218 | int RT_NOCRT(__isnormal)(double) __pure2;
|
---|
219 | int RT_NOCRT(__isnormall)(long double) __pure2;
|
---|
220 | int RT_NOCRT(__signbit)(double) __pure2;
|
---|
221 | int RT_NOCRT(__signbitf)(float) __pure2;
|
---|
222 | int RT_NOCRT(__signbitl)(long double) __pure2;
|
---|
223 |
|
---|
224 | double RT_NOCRT(acos)(double);
|
---|
225 | double RT_NOCRT(asin)(double);
|
---|
226 | double RT_NOCRT(atan)(double);
|
---|
227 | double RT_NOCRT(atan2)(double, double);
|
---|
228 | double RT_NOCRT(cos)(double);
|
---|
229 | double RT_NOCRT(sin)(double);
|
---|
230 | double RT_NOCRT(tan)(double);
|
---|
231 |
|
---|
232 | double RT_NOCRT(cosh)(double);
|
---|
233 | double RT_NOCRT(sinh)(double);
|
---|
234 | double RT_NOCRT(tanh)(double);
|
---|
235 |
|
---|
236 | double RT_NOCRT(exp)(double);
|
---|
237 | double RT_NOCRT(frexp)(double, int *); /* fundamentally !__pure2 */
|
---|
238 | double RT_NOCRT(ldexp)(double, int);
|
---|
239 | double RT_NOCRT(log)(double);
|
---|
240 | double RT_NOCRT(log10)(double);
|
---|
241 | double RT_NOCRT(modf)(double, double *); /* fundamentally !__pure2 */
|
---|
242 |
|
---|
243 | double RT_NOCRT(pow)(double, double);
|
---|
244 | double RT_NOCRT(sqrt)(double);
|
---|
245 |
|
---|
246 | double RT_NOCRT(ceil)(double);
|
---|
247 | double RT_NOCRT(fabs)(double) __pure2;
|
---|
248 | double RT_NOCRT(floor)(double);
|
---|
249 | double RT_NOCRT(fmod)(double, double);
|
---|
250 |
|
---|
251 | /*
|
---|
252 | * These functions are not in C90.
|
---|
253 | */
|
---|
254 | #if 1 /*__BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE*/
|
---|
255 | double RT_NOCRT(acosh)(double);
|
---|
256 | double RT_NOCRT(asinh)(double);
|
---|
257 | double RT_NOCRT(atanh)(double);
|
---|
258 | double RT_NOCRT(cbrt)(double);
|
---|
259 | double RT_NOCRT(erf)(double);
|
---|
260 | double RT_NOCRT(erfc)(double);
|
---|
261 | double RT_NOCRT(exp2)(double);
|
---|
262 | double RT_NOCRT(expm1)(double);
|
---|
263 | double RT_NOCRT(fma)(double, double, double);
|
---|
264 | double RT_NOCRT(hypot)(double, double);
|
---|
265 | int RT_NOCRT(ilogb)(double) __pure2;
|
---|
266 | /*int isinf(double) __pure2;*/
|
---|
267 | /*int isnan(double) __pure2;*/
|
---|
268 | double RT_NOCRT(lgamma)(double);
|
---|
269 | long long RT_NOCRT(llrint)(double);
|
---|
270 | long long RT_NOCRT(llround)(double);
|
---|
271 | double RT_NOCRT(log1p)(double);
|
---|
272 | double RT_NOCRT(logb)(double);
|
---|
273 | long RT_NOCRT(lrint)(double);
|
---|
274 | long RT_NOCRT(lround)(double);
|
---|
275 | double RT_NOCRT(nextafter)(double, double);
|
---|
276 | double RT_NOCRT(remainder)(double, double);
|
---|
277 | double RT_NOCRT(remquo)(double, double, int *);
|
---|
278 | double RT_NOCRT(rint)(double);
|
---|
279 | #endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE */
|
---|
280 |
|
---|
281 | #if 1/* __BSD_VISIBLE || __XSI_VISIBLE*/
|
---|
282 | double RT_NOCRT(j0)(double);
|
---|
283 | double RT_NOCRT(j1)(double);
|
---|
284 | double RT_NOCRT(jn)(int, double);
|
---|
285 | double RT_NOCRT(scalb)(double, double);
|
---|
286 | double RT_NOCRT(y0)(double);
|
---|
287 | double RT_NOCRT(y1)(double);
|
---|
288 | double RT_NOCRT(yn)(int, double);
|
---|
289 |
|
---|
290 | #if 1/* __XSI_VISIBLE <= 500 || __BSD_VISIBLE*/
|
---|
291 | double RT_NOCRT(gamma)(double);
|
---|
292 | #endif
|
---|
293 | #endif /* __BSD_VISIBLE || __XSI_VISIBLE */
|
---|
294 |
|
---|
295 | #if 1/* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999*/
|
---|
296 | double RT_NOCRT(copysign)(double, double) __pure2;
|
---|
297 | double RT_NOCRT(fdim)(double, double);
|
---|
298 | double RT_NOCRT(fmax)(double, double) __pure2;
|
---|
299 | double RT_NOCRT(fmin)(double, double) __pure2;
|
---|
300 | double RT_NOCRT(nearbyint)(double);
|
---|
301 | double RT_NOCRT(round)(double);
|
---|
302 | double RT_NOCRT(scalbln)(double, long);
|
---|
303 | double RT_NOCRT(scalbn)(double, int);
|
---|
304 | double RT_NOCRT(tgamma)(double);
|
---|
305 | double RT_NOCRT(trunc)(double);
|
---|
306 | #endif
|
---|
307 |
|
---|
308 | /*
|
---|
309 | * BSD math library entry points
|
---|
310 | */
|
---|
311 | #if 1/* __BSD_VISIBLE*/
|
---|
312 | double RT_NOCRT(drem)(double, double);
|
---|
313 | int RT_NOCRT(finite)(double) __pure2;
|
---|
314 | int RT_NOCRT(isnanf)(float) __pure2;
|
---|
315 |
|
---|
316 | /*
|
---|
317 | * Reentrant version of gamma & lgamma; passes signgam back by reference
|
---|
318 | * as the second argument; user must allocate space for signgam.
|
---|
319 | */
|
---|
320 | double RT_NOCRT(gamma_r)(double, int *);
|
---|
321 | double RT_NOCRT(lgamma_r)(double, int *);
|
---|
322 |
|
---|
323 | /*
|
---|
324 | * IEEE Test Vector
|
---|
325 | */
|
---|
326 | double RT_NOCRT(significand)(double);
|
---|
327 | #endif /* __BSD_VISIBLE */
|
---|
328 |
|
---|
329 | /* float versions of ANSI/POSIX functions */
|
---|
330 | #if 1/* __ISO_C_VISIBLE >= 1999*/
|
---|
331 | float RT_NOCRT(acosf)(float);
|
---|
332 | float RT_NOCRT(asinf)(float);
|
---|
333 | float RT_NOCRT(atanf)(float);
|
---|
334 | float RT_NOCRT(atan2f)(float, float);
|
---|
335 | float RT_NOCRT(cosf)(float);
|
---|
336 | float RT_NOCRT(sinf)(float);
|
---|
337 | float RT_NOCRT(tanf)(float);
|
---|
338 |
|
---|
339 | float RT_NOCRT(coshf)(float);
|
---|
340 | float RT_NOCRT(sinhf)(float);
|
---|
341 | float RT_NOCRT(tanhf)(float);
|
---|
342 |
|
---|
343 | float RT_NOCRT(exp2f)(float);
|
---|
344 | float RT_NOCRT(expf)(float);
|
---|
345 | float RT_NOCRT(expm1f)(float);
|
---|
346 | float RT_NOCRT(frexpf)(float, int *); /* fundamentally !__pure2 */
|
---|
347 | int RT_NOCRT(ilogbf)(float) __pure2;
|
---|
348 | float RT_NOCRT(ldexpf)(float, int);
|
---|
349 | float RT_NOCRT(log10f)(float);
|
---|
350 | float RT_NOCRT(log1pf)(float);
|
---|
351 | float RT_NOCRT(logf)(float);
|
---|
352 | float RT_NOCRT(modff)(float, float *); /* fundamentally !__pure2 */
|
---|
353 |
|
---|
354 | float RT_NOCRT(powf)(float, float);
|
---|
355 | float RT_NOCRT(sqrtf)(float);
|
---|
356 |
|
---|
357 | float RT_NOCRT(ceilf)(float);
|
---|
358 | float RT_NOCRT(fabsf)(float) __pure2;
|
---|
359 | float RT_NOCRT(floorf)(float);
|
---|
360 | float RT_NOCRT(fmodf)(float, float);
|
---|
361 | float RT_NOCRT(roundf)(float);
|
---|
362 |
|
---|
363 | float RT_NOCRT(erff)(float);
|
---|
364 | float RT_NOCRT(erfcf)(float);
|
---|
365 | float RT_NOCRT(hypotf)(float, float);
|
---|
366 | float RT_NOCRT(lgammaf)(float);
|
---|
367 |
|
---|
368 | float RT_NOCRT(acoshf)(float);
|
---|
369 | float RT_NOCRT(asinhf)(float);
|
---|
370 | float RT_NOCRT(atanhf)(float);
|
---|
371 | float RT_NOCRT(cbrtf)(float);
|
---|
372 | float RT_NOCRT(logbf)(float);
|
---|
373 | float RT_NOCRT(copysignf)(float, float) __pure2;
|
---|
374 | long long RT_NOCRT(llrintf)(float);
|
---|
375 | long long RT_NOCRT(llroundf)(float);
|
---|
376 | long RT_NOCRT(lrintf)(float);
|
---|
377 | long RT_NOCRT(lroundf)(float);
|
---|
378 | float RT_NOCRT(nearbyintf)(float);
|
---|
379 | float RT_NOCRT(nextafterf)(float, float);
|
---|
380 | float RT_NOCRT(remainderf)(float, float);
|
---|
381 | float RT_NOCRT(remquof)(float, float, int *);
|
---|
382 | float RT_NOCRT(rintf)(float);
|
---|
383 | float RT_NOCRT(scalblnf)(float, long);
|
---|
384 | float RT_NOCRT(scalbnf)(float, int);
|
---|
385 | float RT_NOCRT(truncf)(float);
|
---|
386 |
|
---|
387 | float RT_NOCRT(fdimf)(float, float);
|
---|
388 | float RT_NOCRT(fmaf)(float, float, float);
|
---|
389 | float RT_NOCRT(fmaxf)(float, float) __pure2;
|
---|
390 | float RT_NOCRT(fminf)(float, float) __pure2;
|
---|
391 | #endif
|
---|
392 |
|
---|
393 | /*
|
---|
394 | * float versions of BSD math library entry points
|
---|
395 | */
|
---|
396 | #if 1/* __BSD_VISIBLE*/
|
---|
397 | float RT_NOCRT(dremf)(float, float);
|
---|
398 | int RT_NOCRT(finitef)(float) __pure2;
|
---|
399 | float RT_NOCRT(gammaf)(float);
|
---|
400 | float RT_NOCRT(j0f)(float);
|
---|
401 | float RT_NOCRT(j1f)(float);
|
---|
402 | float RT_NOCRT(jnf)(int, float);
|
---|
403 | float RT_NOCRT(scalbf)(float, float);
|
---|
404 | float RT_NOCRT(y0f)(float);
|
---|
405 | float RT_NOCRT(y1f)(float);
|
---|
406 | float RT_NOCRT(ynf)(int, float);
|
---|
407 |
|
---|
408 | /*
|
---|
409 | * Float versions of reentrant version of gamma & lgamma; passes
|
---|
410 | * signgam back by reference as the second argument; user must
|
---|
411 | * allocate space for signgam.
|
---|
412 | */
|
---|
413 | float RT_NOCRT(gammaf_r)(float, int *);
|
---|
414 | float RT_NOCRT(lgammaf_r)(float, int *);
|
---|
415 |
|
---|
416 | /*
|
---|
417 | * float version of IEEE Test Vector
|
---|
418 | */
|
---|
419 | float RT_NOCRT(significandf)(float);
|
---|
420 | #endif /* __BSD_VISIBLE */
|
---|
421 |
|
---|
422 | /*
|
---|
423 | * long double versions of ISO/POSIX math functions
|
---|
424 | */
|
---|
425 | #if 1/* __ISO_C_VISIBLE >= 1999*/
|
---|
426 | #if 1 /* bird: we've got these */
|
---|
427 | long double RT_NOCRT(acoshl)(long double);
|
---|
428 | long double RT_NOCRT(acosl)(long double);
|
---|
429 | long double RT_NOCRT(asinhl)(long double);
|
---|
430 | long double RT_NOCRT(asinl)(long double);
|
---|
431 | long double RT_NOCRT(atan2l)(long double, long double);
|
---|
432 | long double RT_NOCRT(atanhl)(long double);
|
---|
433 | long double RT_NOCRT(atanl)(long double);
|
---|
434 | long double RT_NOCRT(cbrtl)(long double);
|
---|
435 | #endif
|
---|
436 | long double RT_NOCRT(ceill)(long double);
|
---|
437 | long double RT_NOCRT(copysignl)(long double, long double) __pure2;
|
---|
438 | #if 1 /* bird */
|
---|
439 | long double RT_NOCRT(coshl)(long double);
|
---|
440 | long double RT_NOCRT(cosl)(long double);
|
---|
441 | long double RT_NOCRT(erfcl)(long double);
|
---|
442 | long double RT_NOCRT(erfl)(long double);
|
---|
443 | long double RT_NOCRT(exp2l)(long double);
|
---|
444 | long double RT_NOCRT(expl)(long double);
|
---|
445 | long double RT_NOCRT(expm1l)(long double);
|
---|
446 | #endif
|
---|
447 | long double RT_NOCRT(fabsl)(long double) __pure2;
|
---|
448 | long double RT_NOCRT(fdiml)(long double, long double);
|
---|
449 | long double RT_NOCRT(floorl)(long double);
|
---|
450 | long double RT_NOCRT(fmal)(long double, long double, long double);
|
---|
451 | long double RT_NOCRT(fmaxl)(long double, long double) __pure2;
|
---|
452 | long double RT_NOCRT(fminl)(long double, long double) __pure2;
|
---|
453 | #if 1 /* bird */
|
---|
454 | long double RT_NOCRT(fmodl)(long double, long double);
|
---|
455 | #endif
|
---|
456 | long double RT_NOCRT(frexpl)(long double value, int *); /* fundamentally !__pure2 */
|
---|
457 | #if 1 /* bird */
|
---|
458 | long double RT_NOCRT(hypotl)(long double, long double);
|
---|
459 | #endif
|
---|
460 | int RT_NOCRT(ilogbl)(long double) __pure2;
|
---|
461 | long double RT_NOCRT(ldexpl)(long double, int);
|
---|
462 | #if 1 /* bird */
|
---|
463 | long double RT_NOCRT(lgammal)(long double);
|
---|
464 | long long RT_NOCRT(llrintl)(long double);
|
---|
465 | #endif
|
---|
466 | long long RT_NOCRT(llroundl)(long double);
|
---|
467 | #if 1 /* bird */
|
---|
468 | long double RT_NOCRT(log10l)(long double);
|
---|
469 | long double RT_NOCRT(log1pl)(long double);
|
---|
470 | long double RT_NOCRT(log2l)(long double);
|
---|
471 | long double RT_NOCRT(logbl)(long double);
|
---|
472 | long double RT_NOCRT(logl)(long double);
|
---|
473 | long RT_NOCRT(lrintl)(long double);
|
---|
474 | #endif
|
---|
475 | long RT_NOCRT(lroundl)(long double);
|
---|
476 | #if 1 /* bird */
|
---|
477 | long double RT_NOCRT(modfl)(long double, long double *); /* fundamentally !__pure2 */
|
---|
478 | long double RT_NOCRT(nanl)(const char *) __pure2;
|
---|
479 | long double RT_NOCRT(nearbyintl)(long double);
|
---|
480 | #endif
|
---|
481 | long double RT_NOCRT(nextafterl)(long double, long double);
|
---|
482 | double RT_NOCRT(nexttoward)(double, long double);
|
---|
483 | float RT_NOCRT(nexttowardf)(float, long double);
|
---|
484 | long double RT_NOCRT(nexttowardl)(long double, long double);
|
---|
485 | #if 1 /* bird */
|
---|
486 | long double RT_NOCRT(powl)(long double, long double);
|
---|
487 | long double RT_NOCRT(remainderl)(long double, long double);
|
---|
488 | long double RT_NOCRT(remquol)(long double, long double, int *);
|
---|
489 | long double RT_NOCRT(rintl)(long double);
|
---|
490 | #endif
|
---|
491 | long double RT_NOCRT(roundl)(long double);
|
---|
492 | long double RT_NOCRT(scalblnl)(long double, long);
|
---|
493 | long double RT_NOCRT(scalbnl)(long double, int);
|
---|
494 | #if 1 /* bird: we 've got most of these. */
|
---|
495 | long double RT_NOCRT(sinhl)(long double);
|
---|
496 | long double RT_NOCRT(sinl)(long double);
|
---|
497 | long double RT_NOCRT(sqrtl)(long double);
|
---|
498 | long double RT_NOCRT(tanhl)(long double);
|
---|
499 | long double RT_NOCRT(tanl)(long double);
|
---|
500 | long double RT_NOCRT(tgammal)(long double);
|
---|
501 | #endif
|
---|
502 | long double RT_NOCRT(truncl)(long double);
|
---|
503 |
|
---|
504 | /* bird: these were missing, gcc apparently inlines them. */
|
---|
505 | double RT_NOCRT(nan)(const char *);
|
---|
506 | float RT_NOCRT(nanf)(const char *);
|
---|
507 |
|
---|
508 | #endif /* __ISO_C_VISIBLE >= 1999 */
|
---|
509 |
|
---|
510 | #if 1/*def __USE_GNU*/
|
---|
511 | /*
|
---|
512 | * In GLIBC there are long variants of the XOPEN/SVID constant
|
---|
513 | * block some pages ago. We need this to get the math tests going.
|
---|
514 | */
|
---|
515 | #define M_El 2.7182818284590452353602874713526625L
|
---|
516 | #define M_LOG2El 1.4426950408889634073599246810018921L
|
---|
517 | #define M_LOG10El 0.4342944819032518276511289189166051L
|
---|
518 | #define M_LN2l 0.6931471805599453094172321214581766L
|
---|
519 | #define M_LN10l 2.3025850929940456840179914546843642L
|
---|
520 | #define M_PIl 3.1415926535897932384626433832795029L
|
---|
521 | #define M_PI_2l 1.5707963267948966192313216916397514L
|
---|
522 | #define M_PI_4l 0.7853981633974483096156608458198757L
|
---|
523 | #define M_1_PIl 0.3183098861837906715377675267450287L
|
---|
524 | #define M_2_PIl 0.6366197723675813430755350534900574L
|
---|
525 | #define M_2_SQRTPIl 1.1283791670955125738961589031215452L
|
---|
526 | #define M_SQRT2l 1.4142135623730950488016887242096981L
|
---|
527 | #define M_SQRT1_2l 0.7071067811865475244008443621048490L
|
---|
528 | #endif
|
---|
529 |
|
---|
530 | #if 1/*def __USE_GNU*/
|
---|
531 |
|
---|
532 | void RT_NOCRT(sincos)(double, double *, double *);
|
---|
533 | void RT_NOCRT(sincosf)(float, float *, float *);
|
---|
534 | void RT_NOCRT(sincosl)(long double, long double *, long double *);
|
---|
535 | float RT_NOCRT(exp10f)(float);
|
---|
536 | double RT_NOCRT(exp10)(double);
|
---|
537 | long double RT_NOCRT(exp10l)(long double);
|
---|
538 | float RT_NOCRT(log2f)(float);
|
---|
539 | double RT_NOCRT(log2)(double);
|
---|
540 | long double RT_NOCRT(log2l)(long double);
|
---|
541 | float RT_NOCRT(tgammaf)(float);
|
---|
542 | long double RT_NOCRT(significandl)(long double);
|
---|
543 | long double RT_NOCRT(j0l)(long double);
|
---|
544 | long double RT_NOCRT(j1l)(long double);
|
---|
545 | long double RT_NOCRT(jnl)(int, long double);
|
---|
546 | long double RT_NOCRT(scalbl)(long double, long double);
|
---|
547 | long double RT_NOCRT(y0l)(long double);
|
---|
548 | long double RT_NOCRT(y1l)(long double);
|
---|
549 | long double RT_NOCRT(ynl)(int, long double);
|
---|
550 | long double RT_NOCRT(lgammal_r)(long double,int *);
|
---|
551 | long double RT_NOCRT(gammal)(long double);
|
---|
552 | #endif
|
---|
553 | __END_DECLS
|
---|
554 |
|
---|
555 |
|
---|
556 |
|
---|
557 | #ifndef RT_WITHOUT_NOCRT_WRAPPERS
|
---|
558 | /* sed -e "/#/d" -e "/RT_NOCRT/!d" -e "s/^.*RT_NOCRT(\([a-z0-9_]*\)).*$/# define \1 RT_NOCRT(\1)/" */
|
---|
559 | # define __infinity RT_NOCRT(__infinity)
|
---|
560 | # define __nan RT_NOCRT(__nan)
|
---|
561 | # define __fpclassifyf RT_NOCRT(__fpclassifyf)
|
---|
562 | # define __fpclassifyd RT_NOCRT(__fpclassifyd)
|
---|
563 | # define __fpclassifyl RT_NOCRT(__fpclassifyl)
|
---|
564 | # define __isfinitef RT_NOCRT(__isfinitef)
|
---|
565 | # define __isfinite RT_NOCRT(__isfinite)
|
---|
566 | # define __isfinitel RT_NOCRT(__isfinitel)
|
---|
567 | # define __isinff RT_NOCRT(__isinff)
|
---|
568 | # define __isinfl RT_NOCRT(__isinfl)
|
---|
569 | # define __isnanl RT_NOCRT(__isnanl)
|
---|
570 | # define __isnormalf RT_NOCRT(__isnormalf)
|
---|
571 | # define __isnormal RT_NOCRT(__isnormal)
|
---|
572 | # define __isnormall RT_NOCRT(__isnormall)
|
---|
573 | # define __signbitf RT_NOCRT(__signbitf)
|
---|
574 | # define __signbit RT_NOCRT(__signbit)
|
---|
575 | # define __signbitl RT_NOCRT(__signbitl)
|
---|
576 | # define signgam RT_NOCRT(signgam)
|
---|
577 | # define __fpclassifyd RT_NOCRT(__fpclassifyd)
|
---|
578 | # define __fpclassifyf RT_NOCRT(__fpclassifyf)
|
---|
579 | # define __fpclassifyl RT_NOCRT(__fpclassifyl)
|
---|
580 | # define __isfinitef RT_NOCRT(__isfinitef)
|
---|
581 | # define __isfinite RT_NOCRT(__isfinite)
|
---|
582 | # define __isfinitel RT_NOCRT(__isfinitel)
|
---|
583 | # define __isinff RT_NOCRT(__isinff)
|
---|
584 | # define __isinfl RT_NOCRT(__isinfl)
|
---|
585 | # define __isnanl RT_NOCRT(__isnanl)
|
---|
586 | # define __isnormalf RT_NOCRT(__isnormalf)
|
---|
587 | # define __isnormal RT_NOCRT(__isnormal)
|
---|
588 | # define __isnormall RT_NOCRT(__isnormall)
|
---|
589 | # define __signbit RT_NOCRT(__signbit)
|
---|
590 | # define __signbitf RT_NOCRT(__signbitf)
|
---|
591 | # define __signbitl RT_NOCRT(__signbitl)
|
---|
592 | # define acos RT_NOCRT(acos)
|
---|
593 | # define asin RT_NOCRT(asin)
|
---|
594 | # define atan RT_NOCRT(atan)
|
---|
595 | # define atan2 RT_NOCRT(atan2)
|
---|
596 | # define cos RT_NOCRT(cos)
|
---|
597 | # define sin RT_NOCRT(sin)
|
---|
598 | # define tan RT_NOCRT(tan)
|
---|
599 | # define cosh RT_NOCRT(cosh)
|
---|
600 | # define sinh RT_NOCRT(sinh)
|
---|
601 | # define tanh RT_NOCRT(tanh)
|
---|
602 | # define exp RT_NOCRT(exp)
|
---|
603 | # define frexp RT_NOCRT(frexp)
|
---|
604 | # define ldexp RT_NOCRT(ldexp)
|
---|
605 | # define log RT_NOCRT(log)
|
---|
606 | # define log10 RT_NOCRT(log10)
|
---|
607 | # define modf RT_NOCRT(modf)
|
---|
608 | # define pow RT_NOCRT(pow)
|
---|
609 | # define sqrt RT_NOCRT(sqrt)
|
---|
610 | # define ceil RT_NOCRT(ceil)
|
---|
611 | # define fabs RT_NOCRT(fabs)
|
---|
612 | # define floor RT_NOCRT(floor)
|
---|
613 | # define fmod RT_NOCRT(fmod)
|
---|
614 | # define acosh RT_NOCRT(acosh)
|
---|
615 | # define asinh RT_NOCRT(asinh)
|
---|
616 | # define atanh RT_NOCRT(atanh)
|
---|
617 | # define cbrt RT_NOCRT(cbrt)
|
---|
618 | # define erf RT_NOCRT(erf)
|
---|
619 | # define erfc RT_NOCRT(erfc)
|
---|
620 | # define exp2 RT_NOCRT(exp2)
|
---|
621 | # define expm1 RT_NOCRT(expm1)
|
---|
622 | # define fma RT_NOCRT(fma)
|
---|
623 | # define hypot RT_NOCRT(hypot)
|
---|
624 | # define ilogb RT_NOCRT(ilogb)
|
---|
625 | # define lgamma RT_NOCRT(lgamma)
|
---|
626 | # define llrint RT_NOCRT(llrint)
|
---|
627 | # define llround RT_NOCRT(llround)
|
---|
628 | # define log1p RT_NOCRT(log1p)
|
---|
629 | # define logb RT_NOCRT(logb)
|
---|
630 | # define lrint RT_NOCRT(lrint)
|
---|
631 | # define lround RT_NOCRT(lround)
|
---|
632 | # define nextafter RT_NOCRT(nextafter)
|
---|
633 | # define remainder RT_NOCRT(remainder)
|
---|
634 | # define remquo RT_NOCRT(remquo)
|
---|
635 | # define rint RT_NOCRT(rint)
|
---|
636 | # define j0 RT_NOCRT(j0)
|
---|
637 | # define j1 RT_NOCRT(j1)
|
---|
638 | # define jn RT_NOCRT(jn)
|
---|
639 | # define scalb RT_NOCRT(scalb)
|
---|
640 | # define y0 RT_NOCRT(y0)
|
---|
641 | # define y1 RT_NOCRT(y1)
|
---|
642 | # define yn RT_NOCRT(yn)
|
---|
643 | # define gamma RT_NOCRT(gamma)
|
---|
644 | # define copysign RT_NOCRT(copysign)
|
---|
645 | # define fdim RT_NOCRT(fdim)
|
---|
646 | # define fmax RT_NOCRT(fmax)
|
---|
647 | # define fmin RT_NOCRT(fmin)
|
---|
648 | # define nearbyint RT_NOCRT(nearbyint)
|
---|
649 | # define round RT_NOCRT(round)
|
---|
650 | # define scalbln RT_NOCRT(scalbln)
|
---|
651 | # define scalbn RT_NOCRT(scalbn)
|
---|
652 | # define tgamma RT_NOCRT(tgamma)
|
---|
653 | # define trunc RT_NOCRT(trunc)
|
---|
654 | # define drem RT_NOCRT(drem)
|
---|
655 | # define finite RT_NOCRT(finite)
|
---|
656 | # define isnanf RT_NOCRT(isnanf)
|
---|
657 | # define gamma_r RT_NOCRT(gamma_r)
|
---|
658 | # define lgamma_r RT_NOCRT(lgamma_r)
|
---|
659 | # define significand RT_NOCRT(significand)
|
---|
660 | # define acosf RT_NOCRT(acosf)
|
---|
661 | # define asinf RT_NOCRT(asinf)
|
---|
662 | # define atanf RT_NOCRT(atanf)
|
---|
663 | # define atan2f RT_NOCRT(atan2f)
|
---|
664 | # define cosf RT_NOCRT(cosf)
|
---|
665 | # define sinf RT_NOCRT(sinf)
|
---|
666 | # define tanf RT_NOCRT(tanf)
|
---|
667 | # define coshf RT_NOCRT(coshf)
|
---|
668 | # define sinhf RT_NOCRT(sinhf)
|
---|
669 | # define tanhf RT_NOCRT(tanhf)
|
---|
670 | # define exp2f RT_NOCRT(exp2f)
|
---|
671 | # define expf RT_NOCRT(expf)
|
---|
672 | # define expm1f RT_NOCRT(expm1f)
|
---|
673 | # define frexpf RT_NOCRT(frexpf)
|
---|
674 | # define ilogbf RT_NOCRT(ilogbf)
|
---|
675 | # define ldexpf RT_NOCRT(ldexpf)
|
---|
676 | # define log10f RT_NOCRT(log10f)
|
---|
677 | # define log1pf RT_NOCRT(log1pf)
|
---|
678 | # define logf RT_NOCRT(logf)
|
---|
679 | # define modff RT_NOCRT(modff)
|
---|
680 | # define powf RT_NOCRT(powf)
|
---|
681 | # define sqrtf RT_NOCRT(sqrtf)
|
---|
682 | # define ceilf RT_NOCRT(ceilf)
|
---|
683 | # define fabsf RT_NOCRT(fabsf)
|
---|
684 | # define floorf RT_NOCRT(floorf)
|
---|
685 | # define fmodf RT_NOCRT(fmodf)
|
---|
686 | # define roundf RT_NOCRT(roundf)
|
---|
687 | # define erff RT_NOCRT(erff)
|
---|
688 | # define erfcf RT_NOCRT(erfcf)
|
---|
689 | # define hypotf RT_NOCRT(hypotf)
|
---|
690 | # define lgammaf RT_NOCRT(lgammaf)
|
---|
691 | # define acoshf RT_NOCRT(acoshf)
|
---|
692 | # define asinhf RT_NOCRT(asinhf)
|
---|
693 | # define atanhf RT_NOCRT(atanhf)
|
---|
694 | # define cbrtf RT_NOCRT(cbrtf)
|
---|
695 | # define logbf RT_NOCRT(logbf)
|
---|
696 | # define copysignf RT_NOCRT(copysignf)
|
---|
697 | # define llrintf RT_NOCRT(llrintf)
|
---|
698 | # define llroundf RT_NOCRT(llroundf)
|
---|
699 | # define lrintf RT_NOCRT(lrintf)
|
---|
700 | # define lroundf RT_NOCRT(lroundf)
|
---|
701 | # define nearbyintf RT_NOCRT(nearbyintf)
|
---|
702 | # define nextafterf RT_NOCRT(nextafterf)
|
---|
703 | # define remainderf RT_NOCRT(remainderf)
|
---|
704 | # define remquof RT_NOCRT(remquof)
|
---|
705 | # define rintf RT_NOCRT(rintf)
|
---|
706 | # define scalblnf RT_NOCRT(scalblnf)
|
---|
707 | # define scalbnf RT_NOCRT(scalbnf)
|
---|
708 | # define truncf RT_NOCRT(truncf)
|
---|
709 | # define fdimf RT_NOCRT(fdimf)
|
---|
710 | # define fmaf RT_NOCRT(fmaf)
|
---|
711 | # define fmaxf RT_NOCRT(fmaxf)
|
---|
712 | # define fminf RT_NOCRT(fminf)
|
---|
713 | # define dremf RT_NOCRT(dremf)
|
---|
714 | # define finitef RT_NOCRT(finitef)
|
---|
715 | # define gammaf RT_NOCRT(gammaf)
|
---|
716 | # define j0f RT_NOCRT(j0f)
|
---|
717 | # define j1f RT_NOCRT(j1f)
|
---|
718 | # define jnf RT_NOCRT(jnf)
|
---|
719 | # define scalbf RT_NOCRT(scalbf)
|
---|
720 | # define y0f RT_NOCRT(y0f)
|
---|
721 | # define y1f RT_NOCRT(y1f)
|
---|
722 | # define ynf RT_NOCRT(ynf)
|
---|
723 | # define gammaf_r RT_NOCRT(gammaf_r)
|
---|
724 | # define lgammaf_r RT_NOCRT(lgammaf_r)
|
---|
725 | # define significandf RT_NOCRT(significandf)
|
---|
726 | # define acoshl RT_NOCRT(acoshl)
|
---|
727 | # define acosl RT_NOCRT(acosl)
|
---|
728 | # define asinhl RT_NOCRT(asinhl)
|
---|
729 | # define asinl RT_NOCRT(asinl)
|
---|
730 | # define atan2l RT_NOCRT(atan2l)
|
---|
731 | # define atanhl RT_NOCRT(atanhl)
|
---|
732 | # define atanl RT_NOCRT(atanl)
|
---|
733 | # define cbrtl RT_NOCRT(cbrtl)
|
---|
734 | # define ceill RT_NOCRT(ceill)
|
---|
735 | # define copysignl RT_NOCRT(copysignl)
|
---|
736 | # define coshl RT_NOCRT(coshl)
|
---|
737 | # define cosl RT_NOCRT(cosl)
|
---|
738 | # define erfcl RT_NOCRT(erfcl)
|
---|
739 | # define erfl RT_NOCRT(erfl)
|
---|
740 | # define exp2l RT_NOCRT(exp2l)
|
---|
741 | # define expl RT_NOCRT(expl)
|
---|
742 | # define expm1l RT_NOCRT(expm1l)
|
---|
743 | # define fabsl RT_NOCRT(fabsl)
|
---|
744 | # define fdiml RT_NOCRT(fdiml)
|
---|
745 | # define floorl RT_NOCRT(floorl)
|
---|
746 | # define fmal RT_NOCRT(fmal)
|
---|
747 | # define fmaxl RT_NOCRT(fmaxl)
|
---|
748 | # define fminl RT_NOCRT(fminl)
|
---|
749 | # define fmodl RT_NOCRT(fmodl)
|
---|
750 | # define frexpl RT_NOCRT(frexpl)
|
---|
751 | # define hypotl RT_NOCRT(hypotl)
|
---|
752 | # define ilogbl RT_NOCRT(ilogbl)
|
---|
753 | # define ldexpl RT_NOCRT(ldexpl)
|
---|
754 | # define lgammal RT_NOCRT(lgammal)
|
---|
755 | # define llrintl RT_NOCRT(llrintl)
|
---|
756 | # define llroundl RT_NOCRT(llroundl)
|
---|
757 | # define log10l RT_NOCRT(log10l)
|
---|
758 | # define log1pl RT_NOCRT(log1pl)
|
---|
759 | # define log2l RT_NOCRT(log2l)
|
---|
760 | # define logbl RT_NOCRT(logbl)
|
---|
761 | # define logl RT_NOCRT(logl)
|
---|
762 | # define lrintl RT_NOCRT(lrintl)
|
---|
763 | # define lroundl RT_NOCRT(lroundl)
|
---|
764 | # define modfl RT_NOCRT(modfl)
|
---|
765 | # define nanl RT_NOCRT(nanl)
|
---|
766 | # define nearbyintl RT_NOCRT(nearbyintl)
|
---|
767 | # define nextafterl RT_NOCRT(nextafterl)
|
---|
768 | # define nexttoward RT_NOCRT(nexttoward)
|
---|
769 | # define nexttowardf RT_NOCRT(nexttowardf)
|
---|
770 | # define nexttowardl RT_NOCRT(nexttowardl)
|
---|
771 | # define powl RT_NOCRT(powl)
|
---|
772 | # define remainderl RT_NOCRT(remainderl)
|
---|
773 | # define remquol RT_NOCRT(remquol)
|
---|
774 | # define rintl RT_NOCRT(rintl)
|
---|
775 | # define roundl RT_NOCRT(roundl)
|
---|
776 | # define scalblnl RT_NOCRT(scalblnl)
|
---|
777 | # define scalbnl RT_NOCRT(scalbnl)
|
---|
778 | # define sinhl RT_NOCRT(sinhl)
|
---|
779 | # define sinl RT_NOCRT(sinl)
|
---|
780 | # define sqrtl RT_NOCRT(sqrtl)
|
---|
781 | # define tanhl RT_NOCRT(tanhl)
|
---|
782 | # define tanl RT_NOCRT(tanl)
|
---|
783 | # define tgammal RT_NOCRT(tgammal)
|
---|
784 | # define truncl RT_NOCRT(truncl)
|
---|
785 | # define nan RT_NOCRT(nan)
|
---|
786 | # define nanf RT_NOCRT(nanf)
|
---|
787 | # define sincos RT_NOCRT(sincos)
|
---|
788 | # define sincosf RT_NOCRT(sincosf)
|
---|
789 | # define sincosl RT_NOCRT(sincosl)
|
---|
790 | # define exp10f RT_NOCRT(exp10f)
|
---|
791 | # define exp10 RT_NOCRT(exp10)
|
---|
792 | # define exp10l RT_NOCRT(exp10l)
|
---|
793 | # define log2f RT_NOCRT(log2f)
|
---|
794 | # define log2 RT_NOCRT(log2)
|
---|
795 | # define log2l RT_NOCRT(log2l)
|
---|
796 | # define tgammaf RT_NOCRT(tgammaf)
|
---|
797 | # define significandl RT_NOCRT(significandl)
|
---|
798 | # define j0l RT_NOCRT(j0l)
|
---|
799 | # define j1l RT_NOCRT(j1l)
|
---|
800 | # define jnl RT_NOCRT(jnl)
|
---|
801 | # define scalbl RT_NOCRT(scalbl)
|
---|
802 | # define y0l RT_NOCRT(y0l)
|
---|
803 | # define y1l RT_NOCRT(y1l)
|
---|
804 | # define ynl RT_NOCRT(ynl)
|
---|
805 | # define lgammal_r RT_NOCRT(lgammal_r)
|
---|
806 | # define gammal RT_NOCRT(gammal)
|
---|
807 | #endif
|
---|
808 |
|
---|
809 | /*
|
---|
810 | * Include inlined implementations.
|
---|
811 | */
|
---|
812 | #ifdef RT_ARCH_AMD64
|
---|
813 | # include <iprt/nocrt/amd64/math.h>
|
---|
814 | #elif defined(RT_ARCH_X86)
|
---|
815 | # include <iprt/nocrt/x86/math.h>
|
---|
816 | #endif
|
---|
817 |
|
---|
818 | #endif
|
---|
819 |
|
---|