xref: /freebsd/contrib/llvm-project/libcxx/modules/std.compat/cmath.inc (revision 5036d9652a5701d00e9e40ea942c278e9f77d33d)
1// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10export {
11  using ::double_t _LIBCPP_USING_IF_EXISTS;
12  using ::float_t _LIBCPP_USING_IF_EXISTS;
13
14  using ::acos _LIBCPP_USING_IF_EXISTS;
15  using ::acosf _LIBCPP_USING_IF_EXISTS;
16  using ::acosl _LIBCPP_USING_IF_EXISTS;
17
18  using ::asin _LIBCPP_USING_IF_EXISTS;
19  using ::asinf _LIBCPP_USING_IF_EXISTS;
20  using ::asinl _LIBCPP_USING_IF_EXISTS;
21
22  using ::atan _LIBCPP_USING_IF_EXISTS;
23  using ::atanf _LIBCPP_USING_IF_EXISTS;
24  using ::atanl _LIBCPP_USING_IF_EXISTS;
25
26  using ::atan2 _LIBCPP_USING_IF_EXISTS;
27  using ::atan2f _LIBCPP_USING_IF_EXISTS;
28  using ::atan2l _LIBCPP_USING_IF_EXISTS;
29
30  using ::cos _LIBCPP_USING_IF_EXISTS;
31  using ::cosf _LIBCPP_USING_IF_EXISTS;
32  using ::cosl _LIBCPP_USING_IF_EXISTS;
33
34  using ::sin _LIBCPP_USING_IF_EXISTS;
35  using ::sinf _LIBCPP_USING_IF_EXISTS;
36  using ::sinl _LIBCPP_USING_IF_EXISTS;
37
38  using ::tan _LIBCPP_USING_IF_EXISTS;
39  using ::tanf _LIBCPP_USING_IF_EXISTS;
40  using ::tanl _LIBCPP_USING_IF_EXISTS;
41
42  using ::acosh _LIBCPP_USING_IF_EXISTS;
43  using ::acoshf _LIBCPP_USING_IF_EXISTS;
44  using ::acoshl _LIBCPP_USING_IF_EXISTS;
45
46  using ::asinh _LIBCPP_USING_IF_EXISTS;
47  using ::asinhf _LIBCPP_USING_IF_EXISTS;
48  using ::asinhl _LIBCPP_USING_IF_EXISTS;
49
50  using ::atanh _LIBCPP_USING_IF_EXISTS;
51  using ::atanhf _LIBCPP_USING_IF_EXISTS;
52  using ::atanhl _LIBCPP_USING_IF_EXISTS;
53
54  using ::cosh _LIBCPP_USING_IF_EXISTS;
55  using ::coshf _LIBCPP_USING_IF_EXISTS;
56  using ::coshl _LIBCPP_USING_IF_EXISTS;
57
58  using ::sinh _LIBCPP_USING_IF_EXISTS;
59  using ::sinhf _LIBCPP_USING_IF_EXISTS;
60  using ::sinhl _LIBCPP_USING_IF_EXISTS;
61
62  using ::tanh _LIBCPP_USING_IF_EXISTS;
63  using ::tanhf _LIBCPP_USING_IF_EXISTS;
64  using ::tanhl _LIBCPP_USING_IF_EXISTS;
65
66  using ::exp _LIBCPP_USING_IF_EXISTS;
67  using ::expf _LIBCPP_USING_IF_EXISTS;
68  using ::expl _LIBCPP_USING_IF_EXISTS;
69
70  using ::exp2 _LIBCPP_USING_IF_EXISTS;
71  using ::exp2f _LIBCPP_USING_IF_EXISTS;
72  using ::exp2l _LIBCPP_USING_IF_EXISTS;
73
74  using ::expm1 _LIBCPP_USING_IF_EXISTS;
75  using ::expm1f _LIBCPP_USING_IF_EXISTS;
76  using ::expm1l _LIBCPP_USING_IF_EXISTS;
77
78  using ::frexp _LIBCPP_USING_IF_EXISTS;
79  using ::frexpf _LIBCPP_USING_IF_EXISTS;
80  using ::frexpl _LIBCPP_USING_IF_EXISTS;
81
82  using ::ilogb _LIBCPP_USING_IF_EXISTS;
83  using ::ilogbf _LIBCPP_USING_IF_EXISTS;
84  using ::ilogbl _LIBCPP_USING_IF_EXISTS;
85
86  using ::ldexp _LIBCPP_USING_IF_EXISTS;
87  using ::ldexpf _LIBCPP_USING_IF_EXISTS;
88  using ::ldexpl _LIBCPP_USING_IF_EXISTS;
89
90  using ::log _LIBCPP_USING_IF_EXISTS;
91  using ::logf _LIBCPP_USING_IF_EXISTS;
92  using ::logl _LIBCPP_USING_IF_EXISTS;
93
94  using ::log10 _LIBCPP_USING_IF_EXISTS;
95  using ::log10f _LIBCPP_USING_IF_EXISTS;
96  using ::log10l _LIBCPP_USING_IF_EXISTS;
97
98  using ::log1p _LIBCPP_USING_IF_EXISTS;
99  using ::log1pf _LIBCPP_USING_IF_EXISTS;
100  using ::log1pl _LIBCPP_USING_IF_EXISTS;
101
102  using ::log2 _LIBCPP_USING_IF_EXISTS;
103  using ::log2f _LIBCPP_USING_IF_EXISTS;
104  using ::log2l _LIBCPP_USING_IF_EXISTS;
105
106  using ::logb _LIBCPP_USING_IF_EXISTS;
107  using ::logbf _LIBCPP_USING_IF_EXISTS;
108  using ::logbl _LIBCPP_USING_IF_EXISTS;
109
110  using ::modf _LIBCPP_USING_IF_EXISTS;
111  using ::modff _LIBCPP_USING_IF_EXISTS;
112  using ::modfl _LIBCPP_USING_IF_EXISTS;
113
114  using ::scalbn _LIBCPP_USING_IF_EXISTS;
115  using ::scalbnf _LIBCPP_USING_IF_EXISTS;
116  using ::scalbnl _LIBCPP_USING_IF_EXISTS;
117
118  using ::scalbln _LIBCPP_USING_IF_EXISTS;
119  using ::scalblnf _LIBCPP_USING_IF_EXISTS;
120  using ::scalblnl _LIBCPP_USING_IF_EXISTS;
121
122  using ::cbrt _LIBCPP_USING_IF_EXISTS;
123  using ::cbrtf _LIBCPP_USING_IF_EXISTS;
124  using ::cbrtl _LIBCPP_USING_IF_EXISTS;
125
126  // [c.math.abs], absolute values
127  using ::abs _LIBCPP_USING_IF_EXISTS;
128
129  using ::fabs _LIBCPP_USING_IF_EXISTS;
130  using ::fabsf _LIBCPP_USING_IF_EXISTS;
131  using ::fabsl _LIBCPP_USING_IF_EXISTS;
132
133  using ::hypot _LIBCPP_USING_IF_EXISTS;
134  using ::hypotf _LIBCPP_USING_IF_EXISTS;
135  using ::hypotl _LIBCPP_USING_IF_EXISTS;
136
137  // [c.math.hypot3], three-dimensional hypotenuse
138
139  using ::pow _LIBCPP_USING_IF_EXISTS;
140  using ::powf _LIBCPP_USING_IF_EXISTS;
141  using ::powl _LIBCPP_USING_IF_EXISTS;
142
143  using ::sqrt _LIBCPP_USING_IF_EXISTS;
144  using ::sqrtf _LIBCPP_USING_IF_EXISTS;
145  using ::sqrtl _LIBCPP_USING_IF_EXISTS;
146
147  using ::erf _LIBCPP_USING_IF_EXISTS;
148  using ::erff _LIBCPP_USING_IF_EXISTS;
149  using ::erfl _LIBCPP_USING_IF_EXISTS;
150
151  using ::erfc _LIBCPP_USING_IF_EXISTS;
152  using ::erfcf _LIBCPP_USING_IF_EXISTS;
153  using ::erfcl _LIBCPP_USING_IF_EXISTS;
154
155  using ::lgamma _LIBCPP_USING_IF_EXISTS;
156  using ::lgammaf _LIBCPP_USING_IF_EXISTS;
157  using ::lgammal _LIBCPP_USING_IF_EXISTS;
158
159  using ::tgamma _LIBCPP_USING_IF_EXISTS;
160  using ::tgammaf _LIBCPP_USING_IF_EXISTS;
161  using ::tgammal _LIBCPP_USING_IF_EXISTS;
162
163  using ::ceil _LIBCPP_USING_IF_EXISTS;
164  using ::ceilf _LIBCPP_USING_IF_EXISTS;
165  using ::ceill _LIBCPP_USING_IF_EXISTS;
166
167  using ::floor _LIBCPP_USING_IF_EXISTS;
168  using ::floorf _LIBCPP_USING_IF_EXISTS;
169  using ::floorl _LIBCPP_USING_IF_EXISTS;
170
171  using ::nearbyint _LIBCPP_USING_IF_EXISTS;
172  using ::nearbyintf _LIBCPP_USING_IF_EXISTS;
173  using ::nearbyintl _LIBCPP_USING_IF_EXISTS;
174
175  using ::rint _LIBCPP_USING_IF_EXISTS;
176  using ::rintf _LIBCPP_USING_IF_EXISTS;
177  using ::rintl _LIBCPP_USING_IF_EXISTS;
178
179  using ::lrint _LIBCPP_USING_IF_EXISTS;
180  using ::lrintf _LIBCPP_USING_IF_EXISTS;
181  using ::lrintl _LIBCPP_USING_IF_EXISTS;
182
183  using ::llrint _LIBCPP_USING_IF_EXISTS;
184  using ::llrintf _LIBCPP_USING_IF_EXISTS;
185  using ::llrintl _LIBCPP_USING_IF_EXISTS;
186
187  using ::round _LIBCPP_USING_IF_EXISTS;
188  using ::roundf _LIBCPP_USING_IF_EXISTS;
189  using ::roundl _LIBCPP_USING_IF_EXISTS;
190
191  using ::lround _LIBCPP_USING_IF_EXISTS;
192  using ::lroundf _LIBCPP_USING_IF_EXISTS;
193  using ::lroundl _LIBCPP_USING_IF_EXISTS;
194
195  using ::llround _LIBCPP_USING_IF_EXISTS;
196  using ::llroundf _LIBCPP_USING_IF_EXISTS;
197  using ::llroundl _LIBCPP_USING_IF_EXISTS;
198
199  using ::trunc _LIBCPP_USING_IF_EXISTS;
200  using ::truncf _LIBCPP_USING_IF_EXISTS;
201  using ::truncl _LIBCPP_USING_IF_EXISTS;
202
203  using ::fmod _LIBCPP_USING_IF_EXISTS;
204  using ::fmodf _LIBCPP_USING_IF_EXISTS;
205  using ::fmodl _LIBCPP_USING_IF_EXISTS;
206
207  using ::remainder _LIBCPP_USING_IF_EXISTS;
208  using ::remainderf _LIBCPP_USING_IF_EXISTS;
209  using ::remainderl _LIBCPP_USING_IF_EXISTS;
210
211  using ::remquo _LIBCPP_USING_IF_EXISTS;
212  using ::remquof _LIBCPP_USING_IF_EXISTS;
213  using ::remquol _LIBCPP_USING_IF_EXISTS;
214
215  using ::copysign _LIBCPP_USING_IF_EXISTS;
216  using ::copysignf _LIBCPP_USING_IF_EXISTS;
217  using ::copysignl _LIBCPP_USING_IF_EXISTS;
218
219  using ::nan _LIBCPP_USING_IF_EXISTS;
220  using ::nanf _LIBCPP_USING_IF_EXISTS;
221  using ::nanl _LIBCPP_USING_IF_EXISTS;
222
223  using ::nextafter _LIBCPP_USING_IF_EXISTS;
224  using ::nextafterf _LIBCPP_USING_IF_EXISTS;
225  using ::nextafterl _LIBCPP_USING_IF_EXISTS;
226
227  using ::nexttoward _LIBCPP_USING_IF_EXISTS;
228  using ::nexttowardf _LIBCPP_USING_IF_EXISTS;
229  using ::nexttowardl _LIBCPP_USING_IF_EXISTS;
230
231  using ::fdim _LIBCPP_USING_IF_EXISTS;
232  using ::fdimf _LIBCPP_USING_IF_EXISTS;
233  using ::fdiml _LIBCPP_USING_IF_EXISTS;
234
235  using ::fmax _LIBCPP_USING_IF_EXISTS;
236  using ::fmaxf _LIBCPP_USING_IF_EXISTS;
237  using ::fmaxl _LIBCPP_USING_IF_EXISTS;
238
239  using ::fmin _LIBCPP_USING_IF_EXISTS;
240  using ::fminf _LIBCPP_USING_IF_EXISTS;
241  using ::fminl _LIBCPP_USING_IF_EXISTS;
242
243  using ::fma _LIBCPP_USING_IF_EXISTS;
244  using ::fmaf _LIBCPP_USING_IF_EXISTS;
245  using ::fmal _LIBCPP_USING_IF_EXISTS;
246
247  // [c.math.lerp], linear interpolation
248  // [support.c.headers.other]/1
249  // ...  placed within the global namespace scope, except for the functions
250  // described in [sf.cmath], the std::lerp function overloads ([c.math.lerp])
251  // ...
252
253  // [c.math.fpclass], classification / comparison functions
254  using ::fpclassify _LIBCPP_USING_IF_EXISTS;
255  using ::isfinite _LIBCPP_USING_IF_EXISTS;
256  using ::isgreater _LIBCPP_USING_IF_EXISTS;
257  using ::isgreaterequal _LIBCPP_USING_IF_EXISTS;
258  using ::isinf _LIBCPP_USING_IF_EXISTS;
259  using ::isless _LIBCPP_USING_IF_EXISTS;
260  using ::islessequal _LIBCPP_USING_IF_EXISTS;
261  using ::islessgreater _LIBCPP_USING_IF_EXISTS;
262  using ::isnan _LIBCPP_USING_IF_EXISTS;
263  using ::isnormal _LIBCPP_USING_IF_EXISTS;
264  using ::isunordered _LIBCPP_USING_IF_EXISTS;
265  using ::signbit _LIBCPP_USING_IF_EXISTS;
266
267  // [sf.cmath], mathematical special functions
268} // export
269