mathcalls.h
001:
002:
003:
004:
005:
006:
007:
008:
009:
010:
011:
012:
013:
014:
015:
016:
017:
018:
019:
020:
021:
022:
023:
024:
025:
026:
027:
028:
029:
030:
031:
032:
033:
034:
035:
036:
037:
038:
039:
040:
041:
042:
043:
044:
045:
046: #ifndef _MATH_H
047: # error "Never include <bits/mathcalls.h> directly; include <math.h> instead."
048: #endif
049:
050:
051:
052:
053: _Mdouble_BEGIN_NAMESPACE
054:
055: __MATHCALL (acos,, (_Mdouble_ __x));
056:
057: __MATHCALL (asin,, (_Mdouble_ __x));
058:
059: __MATHCALL (atan,, (_Mdouble_ __x));
060:
061: __MATHCALL (atan2,, (_Mdouble_ __y, _Mdouble_ __x));
062:
063:
064: __MATHCALL (cos,, (_Mdouble_ __x));
065:
066: __MATHCALL (sin,, (_Mdouble_ __x));
067:
068: __MATHCALL (tan,, (_Mdouble_ __x));
069:
070:
071:
072:
073: __MATHCALL (cosh,, (_Mdouble_ __x));
074:
075: __MATHCALL (sinh,, (_Mdouble_ __x));
076:
077: __MATHCALL (tanh,, (_Mdouble_ __x));
078: _Mdouble_END_NAMESPACE
079:
080: #ifdef __USE_GNU
081:
082: __MATHDECL (void,sincos,,
083: (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx));
084: #endif
085:
086: #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
087: __BEGIN_NAMESPACE_C99
088:
089: __MATHCALL (acosh,, (_Mdouble_ __x));
090:
091: __MATHCALL (asinh,, (_Mdouble_ __x));
092:
093: __MATHCALL (atanh,, (_Mdouble_ __x));
094: __END_NAMESPACE_C99
095: #endif
096:
097:
098:
099: _Mdouble_BEGIN_NAMESPACE
100:
101: __MATHCALL (exp,, (_Mdouble_ __x));
102:
103:
104: __MATHCALL (frexp,, (_Mdouble_ __x, int *__exponent));
105:
106:
107: __MATHCALL (ldexp,, (_Mdouble_ __x, int __exponent));
108:
109:
110: __MATHCALL (log,, (_Mdouble_ __x));
111:
112:
113: __MATHCALL (log10,, (_Mdouble_ __x));
114:
115:
116: __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr))
117: __attribute__ ((__nonnull__ (2)));
118: _Mdouble_END_NAMESPACE
119:
120: #ifdef __USE_GNU
121:
122: __MATHCALL (exp10,, (_Mdouble_ __x));
123:
124: __MATHCALL (pow10,, (_Mdouble_ __x));
125: #endif
126:
127: #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
128: __BEGIN_NAMESPACE_C99
129:
130: __MATHCALL (expm1,, (_Mdouble_ __x));
131:
132:
133: __MATHCALL (log1p,, (_Mdouble_ __x));
134:
135:
136: __MATHCALL (logb,, (_Mdouble_ __x));
137: __END_NAMESPACE_C99
138: #endif
139:
140: #ifdef __USE_ISOC99
141: __BEGIN_NAMESPACE_C99
142:
143: __MATHCALL (exp2,, (_Mdouble_ __x));
144:
145:
146: __MATHCALL (log2,, (_Mdouble_ __x));
147: __END_NAMESPACE_C99
148: #endif
149:
150:
151:
152:
153: _Mdouble_BEGIN_NAMESPACE
154:
155: __MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y));
156:
157:
158: __MATHCALL (sqrt,, (_Mdouble_ __x));
159: _Mdouble_END_NAMESPACE
160:
161: #if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99
162: __BEGIN_NAMESPACE_C99
163:
164: __MATHCALL (hypot,, (_Mdouble_ __x, _Mdouble_ __y));
165: __END_NAMESPACE_C99
166: #endif
167:
168: #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
169: __BEGIN_NAMESPACE_C99
170:
171: __MATHCALL (cbrt,, (_Mdouble_ __x));
172: __END_NAMESPACE_C99
173: #endif
174:
175:
176:
177:
178: _Mdouble_BEGIN_NAMESPACE
179:
180: __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__));
181:
182:
183: __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__));
184:
185:
186: __MATHCALLX (floor,, (_Mdouble_ __x), (__const__));
187:
188:
189: __MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y));
190:
191:
192:
193:
194: __MATHDECL_1 (int,__isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
195:
196:
197: __MATHDECL_1 (int,__finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
198: _Mdouble_END_NAMESPACE
199:
200: #ifdef __USE_MISC
201:
202:
203: __MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
204:
205:
206: __MATHDECL_1 (int,finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
207:
208:
209: __MATHCALL (drem,, (_Mdouble_ __x, _Mdouble_ __y));
210:
211:
212:
213: __MATHCALL (significand,, (_Mdouble_ __x));
214: #endif
215:
216: #if defined __USE_MISC || defined __USE_ISOC99
217: __BEGIN_NAMESPACE_C99
218:
219: __MATHCALLX (copysign,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
220: __END_NAMESPACE_C99
221: #endif
222:
223: #ifdef __USE_ISOC99
224: __BEGIN_NAMESPACE_C99
225:
226: __MATHCALLX (nan,, (__const char *__tagb), (__const__));
227: __END_NAMESPACE_C99
228: #endif
229:
230:
231:
232: __MATHDECL_1 (int,__isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
233:
234: #if defined __USE_MISC || defined __USE_XOPEN
235:
236: __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
237:
238:
239: __MATHCALL (j0,, (_Mdouble_));
240: __MATHCALL (j1,, (_Mdouble_));
241: __MATHCALL (jn,, (int, _Mdouble_));
242: __MATHCALL (y0,, (_Mdouble_));
243: __MATHCALL (y1,, (_Mdouble_));
244: __MATHCALL (yn,, (int, _Mdouble_));
245: #endif
246:
247:
248: #if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99
249: __BEGIN_NAMESPACE_C99
250:
251: __MATHCALL (erf,, (_Mdouble_));
252: __MATHCALL (erfc,, (_Mdouble_));
253: __MATHCALL (lgamma,, (_Mdouble_));
254: __END_NAMESPACE_C99
255: #endif
256:
257: #ifdef __USE_ISOC99
258: __BEGIN_NAMESPACE_C99
259:
260: __MATHCALL (tgamma,, (_Mdouble_));
261: __END_NAMESPACE_C99
262: #endif
263:
264: #if defined __USE_MISC || defined __USE_XOPEN
265:
266: __MATHCALL (gamma,, (_Mdouble_));
267: #endif
268:
269: #ifdef __USE_MISC
270:
271:
272:
273: __MATHCALL (lgamma,_r, (_Mdouble_, int *__signgamp));
274: #endif
275:
276:
277: #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
278: __BEGIN_NAMESPACE_C99
279:
280:
281: __MATHCALL (rint,, (_Mdouble_ __x));
282:
283:
284: __MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
285: # if defined __USE_ISOC99 && !defined __LDBL_COMPAT
286: __MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__));
287: # endif
288:
289:
290: __MATHCALL (remainder,, (_Mdouble_ __x, _Mdouble_ __y));
291:
292: # if defined __USE_MISC || defined __USE_ISOC99
293:
294: __MATHCALL (scalbn,, (_Mdouble_ __x, int __n));
295: # endif
296:
297:
298: __MATHDECL (int,ilogb,, (_Mdouble_ __x));
299: #endif
300:
301: #ifdef __USE_ISOC99
302:
303: __MATHCALL (scalbln,, (_Mdouble_ __x, long int __n));
304:
305:
306:
307: __MATHCALL (nearbyint,, (_Mdouble_ __x));
308:
309:
310:
311: __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
312:
313:
314:
315: __MATHCALLX (trunc,, (_Mdouble_ __x), (__const__));
316:
317:
318:
319:
320: __MATHCALL (remquo,, (_Mdouble_ __x, _Mdouble_ __y, int *__quo));
321:
322:
323:
324:
325:
326:
327: __MATHDECL (long int,lrint,, (_Mdouble_ __x));
328: __MATHDECL (long long int,llrint,, (_Mdouble_ __x));
329:
330:
331:
332: __MATHDECL (long int,lround,, (_Mdouble_ __x));
333: __MATHDECL (long long int,llround,, (_Mdouble_ __x));
334:
335:
336:
337: __MATHCALL (fdim,, (_Mdouble_ __x, _Mdouble_ __y));
338:
339:
340: __MATHCALL (fmax,, (_Mdouble_ __x, _Mdouble_ __y));
341:
342:
343: __MATHCALL (fmin,, (_Mdouble_ __x, _Mdouble_ __y));
344:
345:
346:
347: __MATHDECL_1 (int, __fpclassify,, (_Mdouble_ __value))
348: __attribute__ ((__const__));
349:
350:
351: __MATHDECL_1 (int, __signbit,, (_Mdouble_ __value))
352: __attribute__ ((__const__));
353:
354:
355:
356: __MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));
357: #endif
358:
359: #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
360: __END_NAMESPACE_C99
361: #endif
362:
363: #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
364:
365: __MATHCALL (scalb,, (_Mdouble_ __x, _Mdouble_ __n));
366: #endif
367:
© Andrew Scott 2006 -
2025,
All Rights Reserved