source: src/libcfa/math @ 17e5e2b

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 17e5e2b was 17e5e2b, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Added proper include guards to cfa headers so they can be added to the c++ include path without issues

  • Property mode set to 100644
File size: 11.0 KB
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// math --
8//
9// Author           : Peter A. Buhr
10// Created On       : Mon Apr 18 23:37:04 2016
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Sun Apr 24 12:45:02 2016
13// Update Count     : 59
14//
15
16#ifdef __CFORALL__
17
18#ifndef MATH_H
19#define MATH_H
20
21extern "C" {
22#include <math.h>                                                                               // fpclassify, isfinite, isnormal, isnan, isinf
23} // extern "C"
24
25float fabs( float );
26// extern "C" { double fabs( double ); }
27long double fabs( long double );
28float cabs( float _Complex );
29// extern "C" { double cabs( double _Complex ); }
30long double cabs( long double _Complex );
31
32float ?%?( float, float );
33float fmod( float, float );
34double ?%?( double, double );
35// extern "C" { double fmod( double, double ); }
36long double ?%?( long double, long double );
37long double fmod( long double, long double );
38
39float remainder( float, float );
40// extern "C" { double remainder( double, double ); }
41long double remainder( long double, long double );
42
43[ int, float ] remquo( float, float );
44float remquo( float, float, int * );
45[ int, double ] remquo( double, double );
46// extern "C" { double remquo( double, double, int * ); }
47[ int, long double ] remquo( long double, long double );
48long double remquo( long double, long double, int * );
49
50[ int, float ] div( float, float );                                             // alternative name for remquo
51float div( float, float, int * );
52[ int, double ] div( double, double );
53// extern "C" { double div( double, double, int * ); }
54[ int, long double ] div( long double, long double );
55long double div( long double, long double, int * );
56
57float fma( float, float, float );
58// extern "C" { double fma( double, double, double ); }
59long double fma( long double, long double, long double );
60
61float fdim( float, float );
62// extern "C" { double fdim( double, double ); }
63long double fdim( long double, long double );
64
65float nan( const char * );
66// extern "C" { double nan( const char * ); }
67long double nan( const char * );
68
69//---------------------- Exponential ----------------------
70
71float exp( float );
72// extern "C" { double exp( double ); }
73long double exp( long double );
74float _Complex exp( float _Complex );
75double _Complex exp( double _Complex );
76long double _Complex exp( long double _Complex );
77
78float exp2( float );
79// extern "C" { double exp2( double ); }
80long double exp2( long double );
81// float _Complex exp2( float _Complex );
82// double _Complex exp2( double _Complex );
83// long double _Complex exp2( long double _Complex );
84
85float expm1( float );
86// extern "C" { double expm1( double ); }
87long double expm1( long double );
88
89float log( float );
90// extern "C" { double log( double ); }
91long double log( long double );
92float _Complex log( float _Complex );
93double _Complex log( double _Complex );
94long double _Complex log( long double _Complex );
95
96float log2( float );
97// extern "C" { double log2( double ); }
98long double log2( long double );
99// float _Complex log2( float _Complex );
100// double _Complex log2( double _Complex );
101// long double _Complex log2( long double _Complex );
102
103float log10( float );
104// extern "C" { double log10( double ); }
105long double log10( long double );
106// float _Complex log10( float _Complex );
107// double _Complex log10( double _Complex );
108// long double _Complex log10( long double _Complex );
109
110float log1p( float );
111// extern "C" { double log1p( double ); }
112long double log1p( long double );
113
114int ilogb( float );
115// extern "C" { int ilogb( double ); }
116int ilogb( long double );
117
118float logb( float );
119// extern "C" { double logb( double ); }
120long double logb( long double );
121
122//---------------------- Power ----------------------
123
124float sqrt( float );
125// extern "C" { double sqrt( double ); }
126long double sqrt( long double );
127float _Complex sqrt( float _Complex );
128double _Complex sqrt( double _Complex );
129long double _Complex sqrt( long double _Complex );
130
131float cbrt( float );
132// extern "C" { double cbrt( double ); }
133long double cbrt( long double );
134
135float hypot( float, float );
136// extern "C" { double hypot( double, double ); }
137long double hypot( long double, long double );
138
139float pow( float, float );
140// extern "C" { double pow( double, double ); }
141long double pow( long double, long double );
142float _Complex pow( float _Complex, float _Complex );
143double _Complex pow( double _Complex, double _Complex );
144long double _Complex pow( long double _Complex, long double _Complex );
145
146//---------------------- Trigonometric ----------------------
147
148float sin( float );
149// extern "C" { double sin( double ); }
150long double sin( long double );
151float _Complex sin( float _Complex );
152double _Complex sin( double _Complex );
153long double _Complex sin( long double _Complex );
154
155float cos( float );
156// extern "C" { double cos( double ); }
157long double cos( long double );
158float _Complex cos( float _Complex );
159double _Complex cos( double _Complex );
160long double _Complex cos( long double _Complex );
161
162float tan( float );
163// extern "C" { double tan( double ); }
164long double tan( long double );
165float _Complex tan( float _Complex );
166double _Complex tan( double _Complex );
167long double _Complex tan( long double _Complex );
168
169float asin( float );
170// extern "C" { double asin( double ); }
171long double asin( long double );
172float _Complex asin( float _Complex );
173double _Complex asin( double _Complex );
174long double _Complex asin( long double _Complex );
175
176float acos( float );
177// extern "C" { double acos( double ); }
178long double acos( long double );
179float _Complex acos( float _Complex );
180double _Complex acos( double _Complex );
181long double _Complex acos( long double _Complex );
182
183float atan( float );
184// extern "C" { double atan( double ); }
185long double atan( long double );
186float _Complex atan( float _Complex );
187double _Complex atan( double _Complex );
188long double _Complex atan( long double _Complex );
189
190float atan2( float, float );
191// extern "C" { double atan2( double, double ); }
192long double atan2( long double, long double );
193
194float atan( float, float );                                                             // alternative name for atan2
195double atan( double, double );
196long double atan( long double, long double );
197
198//---------------------- Hyperbolic ----------------------
199
200float sinh( float );
201// extern "C" { double sinh( double ); }
202long double sinh( long double );
203float _Complex sinh( float _Complex );
204double _Complex sinh( double _Complex );
205long double _Complex sinh( long double _Complex );
206
207float cosh( float );
208// extern "C" { double cosh( double ); }
209long double cosh( long double );
210float _Complex cosh( float _Complex );
211double _Complex cosh( double _Complex );
212long double _Complex cosh( long double _Complex );
213
214float tanh( float );
215// extern "C" { double tanh( double ); }
216long double tanh( long double );
217float _Complex tanh( float _Complex );
218double _Complex tanh( double _Complex );
219long double _Complex tanh( long double _Complex );
220
221float asinh( float );
222// extern "C" { double asinh( double ); }
223long double asinh( long double );
224float _Complex asinh( float _Complex );
225double _Complex asinh( double _Complex );
226long double _Complex asinh( long double _Complex );
227
228float acosh( float );
229// extern "C" { double acosh( double ); }
230long double acosh( long double );
231float _Complex acosh( float _Complex );
232double _Complex acosh( double _Complex );
233long double _Complex acosh( long double _Complex );
234
235float atanh( float );
236// extern "C" { double atanh( double ); }
237long double atanh( long double );
238float _Complex atanh( float _Complex );
239double _Complex atanh( double _Complex );
240long double _Complex atanh( long double _Complex );
241
242//---------------------- Error / Gamma ----------------------
243
244float erf( float );
245// extern "C" { double erf( double ); }
246long double erf( long double );
247// float _Complex erf( float _Complex );
248// double _Complex erf( double _Complex );
249// long double _Complex erf( long double _Complex );
250
251float erfc( float );
252// extern "C" { double erfc( double ); }
253long double erfc( long double );
254// float _Complex erfc( float _Complex );
255// double _Complex erfc( double _Complex );
256// long double _Complex erfc( long double _Complex );
257
258float lgamma( float );
259// extern "C" { double lgamma( double ); }
260long double lgamma( long double );
261float lgamma( float, int * );
262double lgamma( double, int * );
263long double lgamma( long double, int * );
264
265float tgamma( float );
266// extern "C" { double tgamma( double ); }
267long double tgamma( long double );
268
269//---------------------- Nearest Integer ----------------------
270
271float floor( float );
272// extern "C" { double floor( double ); }
273long double floor( long double );
274
275float ceil( float );
276// extern "C" { double ceil( double ); }
277long double ceil( long double );
278
279float trunc( float );
280// extern "C" { double trunc( double ); }
281long double trunc( long double );
282
283float rint( float );
284long double rint( long double );
285long int rint( float );
286long int rint( double );
287long int rint( long double );
288long long int rint( float );
289long long int rint( double );
290long long int rint( long double );
291
292long int lrint( float );
293// extern "C" { long int lrint( double ); }
294long int lrint( long double );
295long long int llrint( float );
296// extern "C" { long long int llrint( double ); }
297long long int llrint( long double );
298
299float nearbyint( float );
300// extern "C" { double nearbyint( double ); }
301long double nearbyint( long double );
302
303float round( float );
304long double round( long double );
305long int round( float );
306long int round( double );
307long int round( long double );
308long long int round( float );
309long long int round( double );
310long long int round( long double );
311
312long int lround( float );
313// extern "C" { long int lround( double ); }
314long int lround( long double );
315long long int llround( float );
316// extern "C" { long long int llround( double ); }
317long long int llround( long double );
318
319//---------------------- Manipulation ----------------------
320
321float copysign( float, float );
322// extern "C" { double copysign( double, double ); }
323long double copysign( long double, long double );
324
325float frexp( float, int * );
326// extern "C" { double frexp( double, int * ); }
327long double frexp( long double, int * );
328
329float ldexp( float, int );
330// extern "C" { double ldexp( double, int ); }
331long double ldexp( long double, int );
332
333[ float, float ] modf( float );
334float modf( float, float * );
335[ double, double ] modf( double );
336// extern "C" { double modf( double, double * ); }
337[ long double, long double ] modf( long double );
338long double modf( long double, long double * );
339
340float nextafter( float, float );
341// extern "C" { double nextafter( double, double ); }
342long double nextafter( long double, long double );
343
344float nexttoward( float, long double );
345// extern "C" { double nexttoward( double, long double ); }
346long double nexttoward( long double, long double );
347
348float scalbn( float, int );
349// extern "C" { double scalbn( double, int ); }
350long double scalbn( long double, int );
351
352float scalbln( float, long int );
353// extern "C" { double scalbln( double, long int ); }
354long double scalbln( long double, long int );
355
356#endif // MATH_H
357
358#else
359#include_next <math>
360#endif //__CFORALL__
361
362// Local Variables: //
363// mode: c //
364// tab-width: 4 //
365// End: //
Note: See TracBrowser for help on using the repository browser.