Numworks Epsilon  1.4.1
Graphing Calculator Operating System
math.h
Go to the documentation of this file.
1 #include_next <math.h>
2 
3 /* s_roundf.c uses isinff and isnanf. Let's correct this */
4 
5 #define isinff(x) __builtin_isinf(x)
6 #define isnanf(x) __builtin_isnan(x)
7 
8 /* In accordance with the C99 standard, we've defined libm function as macros to
9  * leverage compiler optimizations. When comes the time to actually implement
10  * those functions, we don't want the macro to be active. OpenBSD doesn't use
11  * macros so it doesn't bother #undef-ing libm functions. Let's do it here. */
12 
13 #undef acosf
14 #undef acoshf
15 #undef asinf
16 #undef asinhf
17 #undef atanf
18 #undef atan2f
19 #undef atanhf
20 #undef ceilf
21 #undef copysignf
22 #undef cosf
23 #undef coshf
24 #undef expf
25 #undef expm1f
26 #undef fabsf
27 #undef floorf
28 #undef fmodf
29 #undef ldexpf
30 #undef lgammaf
31 #undef lgammaf_r
32 #undef log1pf
33 #undef log10f
34 #undef logf
35 #undef nearbyintf
36 #undef powf
37 #undef roundf
38 #undef scalbnf
39 #undef sinf
40 #undef sinhf
41 #undef sqrtf
42 #undef tanf
43 #undef tanhf
44 #undef truncf
45 
46 #undef acos
47 #undef acosh
48 #undef asin
49 #undef asinh
50 #undef atan
51 #undef atan2
52 #undef atanh
53 #undef ceil
54 #undef copysign
55 #undef cos
56 #undef cosh
57 #undef erf
58 #undef erfc
59 #undef exp
60 #undef expm1
61 #undef fabs
62 #undef floor
63 #undef fmod
64 #undef lgamma
65 #undef lgamma_r
66 #undef log
67 #undef log1p
68 #undef log10
69 #undef log2
70 #undef logb
71 #undef pow
72 #undef rint
73 #undef round
74 #undef scalbn
75 #undef sin
76 #undef sinh
77 #undef sqrt
78 #undef tgamma
79 #undef tan
80 #undef tanh
81 #undef trunc