source: src/libcfa/math @ aa3d77b

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since aa3d77b was 3c0ec68, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

remove routines fabs and cabs from math

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