Blame view

build2/epsilon-master/libaxx/include/cmath 5.38 KB
6663b6c9   adorian   projet complet av...
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
  #ifndef LIBAXX_CMATH
  #define LIBAXX_CMATH
  
  #include <math.h>
  
  #undef fpclassify
  #undef isfinite
  #undef isnormal
  #undef isnan
  #undef isinf
  
  #undef acosf
  #undef acoshf
  #undef asinf
  #undef asinhf
  #undef atanf
  #undef atan2f
  #undef atanhf
  #undef ceilf
  #undef copysignf
  #undef cosf
  #undef coshf
  #undef expf
  #undef expm1f
  #undef fabsf
  #undef fmaxf
  #undef floorf
  #undef fmodf
  #undef hypotf
  #undef lgammaf
  #undef lgammaf_r
  #undef log1pf
  #undef log10f
  #undef logf
  #undef nanf
  #undef nearbyintf
  #undef powf
  #undef roundf
  #undef scalbnf
  #undef sinf
  #undef sinhf
  #undef sqrtf
  #undef tanf
  #undef tanhf
  
  #undef acos
  #undef acosh
  #undef asin
  #undef asinh
  #undef atan
  #undef atanh
  #undef ceil
  #undef copysign
  #undef cos
  #undef cosh
  #undef erf
  #undef erfc
  #undef exp
  #undef expm1
  #undef fabs
  #undef fmax
  #undef floor
  #undef fmod
  #undef hypot
  #undef lgamma
  #undef lgamma_r
  #undef log1p
  #undef log10
  #undef log
  #undef pow
  #undef round
  #undef scalbn
  #undef sin
  #undef sinh
  #undef sqrt
  #undef tan
  #undef tanh
  
  namespace std {
  
  
  static inline double acos(double x) { return __builtin_acos(x); }
  static inline float acos(float x) { return __builtin_acosf(x); }
  static inline double acosh(double x) { return __builtin_acosh(x); }
  static inline float acosh(float x) { return __builtin_acoshf(x); }
  static inline double asin(double x) { return __builtin_asin(x); }
  static inline float asin(float x) { return __builtin_asinf(x); }
  static inline double asinh(double x) { return __builtin_asinh(x); }
  static inline float asinh(float x) { return __builtin_asinhf(x); }
  static inline double atan(double x) { return __builtin_atan(x); }
  static inline float atan(float x) { return __builtin_atanf(x); }
  static inline double atanh(double x) { return __builtin_atanh(x); }
  static inline float atanh(float x) { return __builtin_atanhf(x); }
  static inline double ceil(double x) { return __builtin_ceil(x); }
  static inline float ceil(float x) { return __builtin_ceilf(x); }
  static inline double copysign(double x, double y) { return __builtin_copysign(x, y); }
  static inline float copysign(float x, float y) { return __builtin_copysignf(x, y); }
  static inline double cos(double x) { return __builtin_cos(x); }
  static inline float cos(float x) { return __builtin_cosf(x); }
  static inline double cosh(double x) { return __builtin_cosh(x); }
  static inline float cosh(float x) { return __builtin_coshf(x); }
  static inline double erf(double x) { return __builtin_erf(x); }
  static inline double erfc(double x) { return __builtin_erfc(x); }
  static inline double exp(double x) { return __builtin_exp(x); }
  static inline float exp(float x) { return __builtin_expf(x); }
  static inline double fabs(double x) { return __builtin_fabs(x); }
  static inline float fabs(float x) { return __builtin_fabsf(x); }
  static inline double fmax(double x, double y) { return __builtin_fmax(x, y); }
  static inline float fmax(float x, float y) { return __builtin_fmaxf(x, y); }
  static inline double floor(double x) { return __builtin_floor(x); }
  static inline float floor(float x) { return __builtin_floorf(x); }
  static inline double fmod(double x, double y) { return __builtin_fmod(x, y); }
  static inline float fmod(float x, float y) { return __builtin_fmodf(x, y); }
  static inline int fpclassify(double x) { return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, x); }
  static inline int fpclassify(float x) { return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, x); }
  static inline double hypot(double x, double y) { return __builtin_hypot(x, y); }
  static inline float hypotf(float x, float y) { return __builtin_hypotf(x, y); }
  static inline bool isfinite(double x) { return __builtin_isfinite(x); }
  static inline bool isfinite(float x) { return __builtin_isfinite(x); }
  static inline bool isinf(double x) { return __builtin_isinf(x); }
  static inline bool isinf(float x) { return __builtin_isinf(x); }
  static inline bool isnan(double x) { return __builtin_isnan(x); }
  static inline bool isnan(float x) { return __builtin_isnan(x); }
  static inline bool isnormal(double x) { return __builtin_isnormal(x); }
  static inline bool isnormal(float x) { return __builtin_isnormal(x); }
  static inline double lgamma(double x) { return __builtin_lgamma(x); }
  static inline float lgamma(float x) { return __builtin_lgammaf(x); }
  static inline double log10(double x) { return __builtin_log10(x); }
  static inline float log10(float x) { return __builtin_log10f(x); }
  static inline double log(double x) { return __builtin_log(x); }
  static inline float log(float x) { return __builtin_logf(x); }
  static inline double pow(double x, double y) { return __builtin_pow(x, y); }
  static inline float pow(float x, float y) { return __builtin_powf(x, y); }
  static inline double round(double x) { return __builtin_round(x); }
  static inline float round(float x) { return __builtin_roundf(x); }
  static inline double sin(double x) { return __builtin_sin(x); }
  static inline float sin(float x) { return __builtin_sinf(x); }
  static inline double sinh(double x) { return __builtin_sinh(x); }
  static inline float sinh(float x) { return __builtin_sinhf(x); }
  static inline double sqrt(double x) { return __builtin_sqrt(x); }
  static inline float sqrt(float x) { return __builtin_sqrtf(x); }
  static inline double tan(double x) { return __builtin_tan(x); }
  static inline float tan(float x) { return __builtin_tanf(x); }
  static inline double tanh(double x) { return __builtin_tanh(x); }
  static inline float tanh(float x) { return __builtin_tanhf(x); }
  
  }
  
  #endif