Debian Codegraph @

libphobos/libdruntime/core/stdc/tgmath.d

raw
1 /**
2 * D header file for C99.
3 *
4 * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_tgmath.h.html, _tgmath.h)
5 *
6 * Copyright: Copyright Sean Kelly 2005 - 2009.
7 * License: Distributed under the
8 * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
9 * (See accompanying file LICENSE)
10 * Authors: Sean Kelly
11 * Source: $(DRUNTIMESRC core/stdc/_tgmath.d)
12 * Standards: ISO/IEC 9899:1999 (E)
13 */
14
15 module core.stdc.tgmath;
16
17 import core.stdc.config;
18 private static import core.stdc.math;
19 private static import core.stdc.complex;
20
21 extern (C):
22 @trusted: // Everything here operates on floating point and integer values.
23 nothrow:
24 @nogc:
25
26 version (NetBSD)
27 {
28 ///
29 alias core.stdc.math.acos acos;
30 ///
31 alias core.stdc.math.acosf acos;
32 ///
33 alias core.stdc.math.acosl acos;
34
35 // @@@DEPRECATED_2.105@@@
36 deprecated alias core.stdc.complex.cacos acos;
37 deprecated alias core.stdc.complex.cacosf acos;
38 deprecated alias core.stdc.complex.cacosl acos;
39
40 ///
41 alias core.stdc.math.asin asin;
42 ///
43 alias core.stdc.math.asinf asin;
44 ///
45 alias core.stdc.math.asinl asin;
46
47 // @@@DEPRECATED_2.105@@@
48 deprecated alias core.stdc.complex.casin asin;
49 deprecated alias core.stdc.complex.casinf asin;
50 deprecated alias core.stdc.complex.casinl asin;
51
52 ///
53 alias core.stdc.math.atan atan;
54 ///
55 alias core.stdc.math.atanf atan;
56 ///
57 alias core.stdc.math.atanl atan;
58
59 // @@@DEPRECATED_2.105@@@
60 deprecated alias core.stdc.complex.catan atan;
61 deprecated alias core.stdc.complex.catanf atan;
62 deprecated alias core.stdc.complex.catanl atan;
63
64 ///
65 alias core.stdc.math.atan2 atan2;
66 ///
67 alias core.stdc.math.atan2f atan2;
68 ///
69 alias core.stdc.math.atan2l atan2;
70
71 ///
72 alias core.stdc.math.cos cos;
73 ///
74 alias core.stdc.math.cosf cos;
75 ///
76 alias core.stdc.math.cosl cos;
77
78 // @@@DEPRECATED_2.105@@@
79 deprecated alias core.stdc.complex.ccos cos;
80 deprecated alias core.stdc.complex.ccosf cos;
81 deprecated alias core.stdc.complex.ccosl cos;
82
83 ///
84 alias core.stdc.math.sin sin;
85 ///
86 alias core.stdc.math.sinf sin;
87 ///
88 alias core.stdc.math.sinl sin;
89
90 // @@@DEPRECATED_2.105@@@
91 deprecated alias core.stdc.complex.csin csin;
92 deprecated alias core.stdc.complex.csinf csin;
93 deprecated alias core.stdc.complex.csinl csin;
94
95 ///
96 alias core.stdc.math.tan tan;
97 ///
98 alias core.stdc.math.tanf tan;
99 ///
100 alias core.stdc.math.tanl tan;
101
102 // @@@DEPRECATED_2.105@@@
103 deprecated alias core.stdc.complex.ctan tan;
104 deprecated alias core.stdc.complex.ctanf tan;
105 deprecated alias core.stdc.complex.ctanl tan;
106
107 ///
108 alias core.stdc.math.acosh acosh;
109 ///
110 alias core.stdc.math.acoshf acosh;
111 ///
112 alias core.stdc.math.acoshl acosh;
113
114 // @@@DEPRECATED_2.105@@@
115 deprecated alias core.stdc.complex.cacosh acosh;
116 deprecated alias core.stdc.complex.cacoshf acosh;
117 deprecated alias core.stdc.complex.cacoshl acosh;
118
119 ///
120 alias core.stdc.math.asinh asinh;
121 ///
122 alias core.stdc.math.asinhf asinh;
123 ///
124 alias core.stdc.math.asinhl asinh;
125
126 // @@@DEPRECATED_2.105@@@
127 deprecated alias core.stdc.complex.casinh asinh;
128 deprecated alias core.stdc.complex.casinhf asinh;
129 deprecated alias core.stdc.complex.casinhl asinh;
130
131 ///
132 alias core.stdc.math.atanh atanh;
133 ///
134 alias core.stdc.math.atanhf atanh;
135 ///
136 alias core.stdc.math.atanhl atanh;
137
138 // @@@DEPRECATED_2.105@@@
139 deprecated alias core.stdc.complex.catanh atanh;
140 deprecated alias core.stdc.complex.catanhf atanh;
141 deprecated alias core.stdc.complex.catanhl atanh;
142
143 ///
144 alias core.stdc.math.cosh cosh;
145 ///
146 alias core.stdc.math.coshf cosh;
147 ///
148 alias core.stdc.math.coshl cosh;
149
150 // @@@DEPRECATED_2.105@@@
151 deprecated alias core.stdc.complex.ccosh cosh;
152 deprecated alias core.stdc.complex.ccoshf cosh;
153 deprecated alias core.stdc.complex.ccoshl cosh;
154
155 ///
156 alias core.stdc.math.sinh sinh;
157 ///
158 alias core.stdc.math.sinhf sinh;
159 ///
160 alias core.stdc.math.sinhl sinh;
161
162 // @@@DEPRECATED_2.105@@@
163 deprecated alias core.stdc.complex.csinh sinh;
164 deprecated alias core.stdc.complex.csinhf sinh;
165 deprecated alias core.stdc.complex.csinhl sinh;
166
167 ///
168 alias core.stdc.math.tanh tanh;
169 ///
170 alias core.stdc.math.tanhf tanh;
171 ///
172 alias core.stdc.math.tanhl tanh;
173
174 // @@@DEPRECATED_2.105@@@
175 deprecated alias core.stdc.complex.ctanh tanh;
176 deprecated alias core.stdc.complex.ctanhf tanh;
177 deprecated alias core.stdc.complex.ctanhl tanh;
178
179 ///
180 alias core.stdc.math.exp exp;
181 ///
182 alias core.stdc.math.expf exp;
183 ///
184 alias core.stdc.math.expl exp;
185
186 // @@@DEPRECATED_2.105@@@
187 deprecated alias core.stdc.complex.cexp exp;
188 deprecated alias core.stdc.complex.cexpf exp;
189 deprecated alias core.stdc.complex.cexpl exp;
190
191 ///
192 alias core.stdc.math.exp2 exp2;
193 ///
194 alias core.stdc.math.exp2f exp2;
195 ///
196 alias core.stdc.math.exp2l exp2;
197
198 ///
199 alias core.stdc.math.expm1 expm1;
200 ///
201 alias core.stdc.math.expm1f expm1;
202 ///
203 alias core.stdc.math.expm1l expm1;
204
205 ///
206 alias core.stdc.math.frexp frexp;
207 ///
208 alias core.stdc.math.frexpf frexp;
209 ///
210 alias core.stdc.math.frexpl frexp;
211
212 ///
213 alias core.stdc.math.ilogb ilogb;
214 ///
215 alias core.stdc.math.ilogbf ilogb;
216 ///
217 alias core.stdc.math.ilogbl ilogb;
218
219 ///
220 alias core.stdc.math.ldexp ldexp;
221 ///
222 alias core.stdc.math.ldexpf ldexp;
223 ///
224 alias core.stdc.math.ldexpl ldexp;
225
226 ///
227 alias core.stdc.math.log log;
228 ///
229 alias core.stdc.math.logf log;
230 ///
231 alias core.stdc.math.logl log;
232
233 // @@@DEPRECATED_2.105@@@
234 deprecated alias core.stdc.complex.clog log;
235 deprecated alias core.stdc.complex.clogf log;
236 deprecated alias core.stdc.complex.clogl log;
237
238 ///
239 alias core.stdc.math.log10 log10;
240 ///
241 alias core.stdc.math.log10f log10;
242 ///
243 alias core.stdc.math.log10l log10;
244
245 ///
246 alias core.stdc.math.log1p log1p;
247 ///
248 alias core.stdc.math.log1pf log1p;
249 ///
250 alias core.stdc.math.log1pl log1p;
251
252 ///
253 alias core.stdc.math.log2 log2;
254 ///
255 alias core.stdc.math.log2f log2;
256 ///
257 alias core.stdc.math.log2l log2;
258
259 ///
260 alias core.stdc.math.logb logb;
261 ///
262 alias core.stdc.math.logbf logb;
263 ///
264 alias core.stdc.math.logbl logb;
265
266 ///
267 alias core.stdc.math.modf modf;
268 ///
269 alias core.stdc.math.modff modf;
270 // alias core.stdc.math.modfl modf;
271
272 ///
273 alias core.stdc.math.scalbn scalbn;
274 ///
275 alias core.stdc.math.scalbnf scalbn;
276 ///
277 alias core.stdc.math.scalbnl scalbn;
278
279 ///
280 alias core.stdc.math.scalbln scalbln;
281 ///
282 alias core.stdc.math.scalblnf scalbln;
283 ///
284 alias core.stdc.math.scalblnl scalbln;
285
286 ///
287 alias core.stdc.math.cbrt cbrt;
288 ///
289 alias core.stdc.math.cbrtf cbrt;
290 ///
291 alias core.stdc.math.cbrtl cbrt;
292
293 ///
294 alias core.stdc.math.fabs fabs;
295 ///
296 alias core.stdc.math.fabsf fabs;
297 ///
298 alias core.stdc.math.fabsl fabs;
299
300 // @@@DEPRECATED_2.105@@@
301 deprecated alias core.stdc.complex.cabs fabs;
302 deprecated alias core.stdc.complex.cabsf fabs;
303 deprecated alias core.stdc.complex.cabsl fabs;
304
305 ///
306 alias core.stdc.math.hypot hypot;
307 ///
308 alias core.stdc.math.hypotf hypot;
309 ///
310 alias core.stdc.math.hypotl hypot;
311
312 ///
313 alias core.stdc.math.pow pow;
314 ///
315 alias core.stdc.math.powf pow;
316 ///
317 alias core.stdc.math.powl pow;
318
319 // @@@DEPRECATED_2.105@@@
320 deprecated alias core.stdc.complex.cpow pow;
321 deprecated alias core.stdc.complex.cpowf pow;
322 deprecated alias core.stdc.complex.cpowl pow;
323
324 ///
325 alias core.stdc.math.sqrt sqrt;
326 ///
327 alias core.stdc.math.sqrtf sqrt;
328 ///
329 alias core.stdc.math.sqrtl sqrt;
330
331 // @@@DEPRECATED_2.105@@@
332 deprecated alias core.stdc.complex.csqrt sqrt;
333 deprecated alias core.stdc.complex.csqrtf sqrt;
334 deprecated alias core.stdc.complex.csqrtl sqrt;
335
336 ///
337 alias core.stdc.math.erf erf;
338 ///
339 alias core.stdc.math.erff erf;
340 ///
341 alias core.stdc.math.erfl erf;
342
343 ///
344 alias core.stdc.math.erfc erfc;
345 ///
346 alias core.stdc.math.erfcf erfc;
347 ///
348 alias core.stdc.math.erfcl erfc;
349
350 ///
351 alias core.stdc.math.lgamma lgamma;
352 ///
353 alias core.stdc.math.lgammaf lgamma;
354 ///
355 alias core.stdc.math.lgammal lgamma;
356
357 ///
358 alias core.stdc.math.tgamma tgamma;
359 ///
360 alias core.stdc.math.tgammaf tgamma;
361 ///
362 alias core.stdc.math.tgammal tgamma;
363
364 ///
365 alias core.stdc.math.ceil ceil;
366 ///
367 alias core.stdc.math.ceilf ceil;
368 ///
369 alias core.stdc.math.ceill ceil;
370
371 ///
372 alias core.stdc.math.floor floor;
373 ///
374 alias core.stdc.math.floorf floor;
375 ///
376 alias core.stdc.math.floorl floor;
377
378 ///
379 alias core.stdc.math.nearbyint nearbyint;
380 ///
381 alias core.stdc.math.nearbyintf nearbyint;
382 ///
383 alias core.stdc.math.nearbyintl nearbyint;
384
385 ///
386 alias core.stdc.math.rint rint;
387 ///
388 alias core.stdc.math.rintf rint;
389 ///
390 alias core.stdc.math.rintl rint;
391
392 ///
393 alias core.stdc.math.lrint lrint;
394 ///
395 alias core.stdc.math.lrintf lrint;
396 ///
397 alias core.stdc.math.lrintl lrint;
398
399 ///
400 alias core.stdc.math.llrint llrint;
401 ///
402 alias core.stdc.math.llrintf llrint;
403 ///
404 alias core.stdc.math.llrintl llrint;
405
406 ///
407 alias core.stdc.math.round round;
408 ///
409 alias core.stdc.math.roundf round;
410 ///
411 alias core.stdc.math.roundl round;
412
413 ///
414 alias core.stdc.math.lround lround;
415 ///
416 alias core.stdc.math.lroundf lround;
417 ///
418 alias core.stdc.math.lroundl lround;
419
420 ///
421 alias core.stdc.math.llround llroundl;
422 ///
423 alias core.stdc.math.llroundf llroundl;
424 ///
425 alias core.stdc.math.llroundl llroundl;
426
427 ///
428 alias core.stdc.math.trunc trunc;
429 ///
430 alias core.stdc.math.truncf trunc;
431 ///
432 alias core.stdc.math.truncl trunc;
433
434 ///
435 alias core.stdc.math.fmod fmod;
436 ///
437 alias core.stdc.math.fmodf fmod;
438 ///
439 alias core.stdc.math.fmodl fmod;
440
441 ///
442 alias core.stdc.math.remainder remainder;
443 ///
444 alias core.stdc.math.remainderf remainder;
445 ///
446 alias core.stdc.math.remainderl remainder;
447
448 ///
449 alias core.stdc.math.remquo remquo;
450 ///
451 alias core.stdc.math.remquof remquo;
452 ///
453 alias core.stdc.math.remquol remquo;
454
455 ///
456 alias core.stdc.math.copysign copysign;
457 ///
458 alias core.stdc.math.copysignf copysign;
459 ///
460 alias core.stdc.math.copysignl copysign;
461
462 // alias core.stdc.math.nan nan;
463 // alias core.stdc.math.nanf nan;
464 // alias core.stdc.math.nanl nan;
465
466 ///
467 alias core.stdc.math.nextafter nextafter;
468 ///
469 alias core.stdc.math.nextafterf nextafter;
470 ///
471 alias core.stdc.math.nextafterl nextafter;
472
473 ///
474 alias core.stdc.math.nexttoward nexttoward;
475 ///
476 alias core.stdc.math.nexttowardf nexttoward;
477 ///
478 alias core.stdc.math.nexttowardl nexttoward;
479
480 ///
481 alias core.stdc.math.fdim fdim;
482 ///
483 alias core.stdc.math.fdimf fdim;
484 ///
485 alias core.stdc.math.fdiml fdim;
486
487 ///
488 alias core.stdc.math.fmax fmax;
489 ///
490 alias core.stdc.math.fmaxf fmax;
491 ///
492 alias core.stdc.math.fmaxl fmax;
493
494 ///
495 alias core.stdc.math.fmin fmin;
496 ///
497 alias core.stdc.math.fmin fmin;
498 ///
499 alias core.stdc.math.fminl fmin;
500
501 ///
502 alias core.stdc.math.fma fma;
503 ///
504 alias core.stdc.math.fmaf fma;
505 ///
506 alias core.stdc.math.fmal fma;
507
508 // @@@DEPRECATED_2.105@@@
509 deprecated alias core.stdc.complex.carg carg;
510 deprecated alias core.stdc.complex.cargf carg;
511 deprecated alias core.stdc.complex.cargl carg;
512 deprecated alias core.stdc.complex.cimag cimag;
513 deprecated alias core.stdc.complex.cimagf cimag;
514 deprecated alias core.stdc.complex.cimagl cimag;
515 deprecated alias core.stdc.complex.conj conj;
516 deprecated alias core.stdc.complex.conjf conj;
517 deprecated alias core.stdc.complex.conjl conj;
518 deprecated alias core.stdc.complex.cproj cproj;
519 deprecated alias core.stdc.complex.cprojf cproj;
520 deprecated alias core.stdc.complex.cprojl cproj;
521
522 // deprecated alias core.stdc.complex.creal creal;
523 // deprecated alias core.stdc.complex.crealf creal;
524 // deprecated alias core.stdc.complex.creall creal;
525 }
526 else version (OpenBSD)
527 {
528 ///
529 alias core.stdc.math.acos acos;
530 ///
531 alias core.stdc.math.acosf acos;
532 ///
533 alias core.stdc.math.acosl acos;
534
535 // @@@DEPRECATED_2.105@@@
536 deprecated alias core.stdc.complex.cacos acos;
537 deprecated alias core.stdc.complex.cacosf acos;
538 deprecated alias core.stdc.complex.cacosl acos;
539
540 ///
541 alias core.stdc.math.asin asin;
542 ///
543 alias core.stdc.math.asinf asin;
544 ///
545 alias core.stdc.math.asinl asin;
546
547 // @@@DEPRECATED_2.105@@@
548 deprecated alias core.stdc.complex.casin asin;
549 deprecated alias core.stdc.complex.casinf asin;
550 deprecated alias core.stdc.complex.casinl asin;
551
552 ///
553 alias core.stdc.math.atan atan;
554 ///
555 alias core.stdc.math.atanf atan;
556 ///
557 alias core.stdc.math.atanl atan;
558
559 // @@@DEPRECATED_2.105@@@
560 deprecated alias core.stdc.complex.catan atan;
561 deprecated alias core.stdc.complex.catanf atan;
562 deprecated alias core.stdc.complex.catanl atan;
563
564 ///
565 alias core.stdc.math.atan2 atan2;
566 ///
567 alias core.stdc.math.atan2f atan2;
568 ///
569 alias core.stdc.math.atan2l atan2;
570
571 ///
572 alias core.stdc.math.cos cos;
573 ///
574 alias core.stdc.math.cosf cos;
575 ///
576 alias core.stdc.math.cosl cos;
577
578 // @@@DEPRECATED_2.105@@@
579 deprecated alias core.stdc.complex.ccos cos;
580 deprecated alias core.stdc.complex.ccosf cos;
581 deprecated alias core.stdc.complex.ccosl cos;
582
583 ///
584 alias core.stdc.math.sin sin;
585 ///
586 alias core.stdc.math.sinf sin;
587 ///
588 alias core.stdc.math.sinl sin;
589
590 // @@@DEPRECATED_2.105@@@
591 deprecated alias core.stdc.complex.csin csin;
592 deprecated alias core.stdc.complex.csinf csin;
593 deprecated alias core.stdc.complex.csinl csin;
594
595 ///
596 alias core.stdc.math.tan tan;
597 ///
598 alias core.stdc.math.tanf tan;
599 ///
600 alias core.stdc.math.tanl tan;
601
602 // @@@DEPRECATED_2.105@@@
603 deprecated alias core.stdc.complex.ctan tan;
604 deprecated alias core.stdc.complex.ctanf tan;
605 deprecated alias core.stdc.complex.ctanl tan;
606
607 ///
608 alias core.stdc.math.acosh acosh;
609 ///
610 alias core.stdc.math.acoshf acosh;
611 ///
612 alias core.stdc.math.acoshl acosh;
613
614 // @@@DEPRECATED_2.105@@@
615 deprecated alias core.stdc.complex.cacosh acosh;
616 deprecated alias core.stdc.complex.cacoshf acosh;
617 deprecated alias core.stdc.complex.cacoshl acosh;
618
619 ///
620 alias core.stdc.math.asinh asinh;
621 ///
622 alias core.stdc.math.asinhf asinh;
623 ///
624 alias core.stdc.math.asinhl asinh;
625
626 // @@@DEPRECATED_2.105@@@
627 deprecated alias core.stdc.complex.casinh asinh;
628 deprecated alias core.stdc.complex.casinhf asinh;
629 deprecated alias core.stdc.complex.casinhl asinh;
630
631 ///
632 alias core.stdc.math.atanh atanh;
633 ///
634 alias core.stdc.math.atanhf atanh;
635 ///
636 alias core.stdc.math.atanhl atanh;
637
638 // @@@DEPRECATED_2.105@@@
639 deprecated alias core.stdc.complex.catanh atanh;
640 deprecated alias core.stdc.complex.catanhf atanh;
641 deprecated alias core.stdc.complex.catanhl atanh;
642
643 ///
644 alias core.stdc.math.cosh cosh;
645 ///
646 alias core.stdc.math.coshf cosh;
647 ///
648 alias core.stdc.math.coshl cosh;
649
650 // @@@DEPRECATED_2.105@@@
651 deprecated alias core.stdc.complex.ccosh cosh;
652 deprecated alias core.stdc.complex.ccoshf cosh;
653 deprecated alias core.stdc.complex.ccoshl cosh;
654
655 ///
656 alias core.stdc.math.sinh sinh;
657 ///
658 alias core.stdc.math.sinhf sinh;
659 ///
660 alias core.stdc.math.sinhl sinh;
661
662 // @@@DEPRECATED_2.105@@@
663 deprecated alias core.stdc.complex.csinh sinh;
664 deprecated alias core.stdc.complex.csinhf sinh;
665 deprecated alias core.stdc.complex.csinhl sinh;
666
667 ///
668 alias core.stdc.math.tanh tanh;
669 ///
670 alias core.stdc.math.tanhf tanh;
671 ///
672 alias core.stdc.math.tanhl tanh;
673
674 // @@@DEPRECATED_2.105@@@
675 deprecated alias core.stdc.complex.ctanh tanh;
676 deprecated alias core.stdc.complex.ctanhf tanh;
677 deprecated alias core.stdc.complex.ctanhl tanh;
678
679 ///
680 alias core.stdc.math.exp exp;
681 ///
682 alias core.stdc.math.expf exp;
683 ///
684 alias core.stdc.math.expl exp;
685
686 // @@@DEPRECATED_2.105@@@
687 deprecated alias core.stdc.complex.cexp exp;
688 deprecated alias core.stdc.complex.cexpf exp;
689 deprecated alias core.stdc.complex.cexpl exp;
690
691 ///
692 alias core.stdc.math.exp2 exp2;
693 ///
694 alias core.stdc.math.exp2f exp2;
695 ///
696 alias core.stdc.math.exp2l exp2;
697
698 ///
699 alias core.stdc.math.expm1 expm1;
700 ///
701 alias core.stdc.math.expm1f expm1;
702 ///
703 alias core.stdc.math.expm1l expm1;
704
705 ///
706 alias core.stdc.math.frexp frexp;
707 ///
708 alias core.stdc.math.frexpf frexp;
709 ///
710 alias core.stdc.math.frexpl frexp;
711
712 ///
713 alias core.stdc.math.ilogb ilogb;
714 ///
715 alias core.stdc.math.ilogbf ilogb;
716 ///
717 alias core.stdc.math.ilogbl ilogb;
718
719 ///
720 alias core.stdc.math.ldexp ldexp;
721 ///
722 alias core.stdc.math.ldexpf ldexp;
723 ///
724 alias core.stdc.math.ldexpl ldexp;
725
726 ///
727 alias core.stdc.math.log log;
728 ///
729 alias core.stdc.math.logf log;
730 ///
731 alias core.stdc.math.logl log;
732
733 // @@@DEPRECATED_2.105@@@
734 deprecated alias core.stdc.complex.clog log;
735 deprecated alias core.stdc.complex.clogf log;
736 deprecated alias core.stdc.complex.clogl log;
737
738 ///
739 alias core.stdc.math.log10 log10;
740 ///
741 alias core.stdc.math.log10f log10;
742 ///
743 alias core.stdc.math.log10l log10;
744
745 ///
746 alias core.stdc.math.log1p log1p;
747 ///
748 alias core.stdc.math.log1pf log1p;
749 ///
750 alias core.stdc.math.log1pl log1p;
751
752 ///
753 alias core.stdc.math.log2 log2;
754 ///
755 alias core.stdc.math.log2f log2;
756 ///
757 alias core.stdc.math.log2l log2;
758
759 ///
760 alias core.stdc.math.logb logb;
761 ///
762 alias core.stdc.math.logbf logb;
763 ///
764 alias core.stdc.math.logbl logb;
765
766 ///
767 alias core.stdc.math.fmod fmod;
768 ///
769 alias core.stdc.math.fmodf fmod;
770 ///
771 alias core.stdc.math.fmodl fmod;
772
773 ///
774 alias core.stdc.math.scalbn scalbn;
775 ///
776 alias core.stdc.math.scalbnf scalbn;
777 ///
778 alias core.stdc.math.scalbnl scalbn;
779
780 ///
781 alias core.stdc.math.scalbln scalbln;
782 ///
783 alias core.stdc.math.scalblnf scalbln;
784 ///
785 alias core.stdc.math.scalblnl scalbln;
786
787 ///
788 alias core.stdc.math.cbrt cbrt;
789 ///
790 alias core.stdc.math.cbrtf cbrt;
791 ///
792 alias core.stdc.math.cbrtl cbrt;
793
794 ///
795 alias core.stdc.math.fabs fabs;
796 ///
797 alias core.stdc.math.fabsf fabs;
798 ///
799 alias core.stdc.math.fabsl fabs;
800
801 // @@@DEPRECATED_2.105@@@
802 deprecated alias core.stdc.complex.cabs fabs;
803 deprecated alias core.stdc.complex.cabsf fabs;
804 deprecated alias core.stdc.complex.cabsl fabs;
805
806 ///
807 alias core.stdc.math.hypot hypot;
808 ///
809 alias core.stdc.math.hypotf hypot;
810 ///
811 alias core.stdc.math.hypotl hypot;
812
813 ///
814 alias core.stdc.math.pow pow;
815 ///
816 alias core.stdc.math.powf pow;
817 ///
818 alias core.stdc.math.powl pow;
819
820 // @@@DEPRECATED_2.105@@@
821 deprecated alias core.stdc.complex.cpow pow;
822 deprecated alias core.stdc.complex.cpowf pow;
823 deprecated alias core.stdc.complex.cpowl pow;
824
825 ///
826 alias core.stdc.math.sqrt sqrt;
827 ///
828 alias core.stdc.math.sqrtf sqrt;
829 ///
830 alias core.stdc.math.sqrtl sqrt;
831
832 // @@@DEPRECATED_2.105@@@
833 deprecated alias core.stdc.complex.csqrt sqrt;
834 deprecated alias core.stdc.complex.csqrtf sqrt;
835 deprecated alias core.stdc.complex.csqrtl sqrt;
836
837 ///
838 alias core.stdc.math.erf erf;
839 ///
840 alias core.stdc.math.erff erf;
841 ///
842 alias core.stdc.math.erfl erf;
843
844 ///
845 alias core.stdc.math.erfc erfc;
846 ///
847 alias core.stdc.math.erfcf erfc;
848 ///
849 alias core.stdc.math.erfcl erfc;
850
851 ///
852 alias core.stdc.math.lgamma lgamma;
853 ///
854 alias core.stdc.math.lgammaf lgamma;
855 ///
856 alias core.stdc.math.lgammal lgamma;
857
858 ///
859 alias core.stdc.math.tgamma tgamma;
860 ///
861 alias core.stdc.math.tgammaf tgamma;
862 ///
863 alias core.stdc.math.tgammal tgamma;
864
865 ///
866 alias core.stdc.math.ceil ceil;
867 ///
868 alias core.stdc.math.ceilf ceil;
869 ///
870 alias core.stdc.math.ceill ceil;
871
872 ///
873 alias core.stdc.math.floor floor;
874 ///
875 alias core.stdc.math.floorf floor;
876 ///
877 alias core.stdc.math.floorl floor;
878
879 ///
880 alias core.stdc.math.nearbyint nearbyint;
881 ///
882 alias core.stdc.math.nearbyintf nearbyint;
883 ///
884 alias core.stdc.math.nearbyintl nearbyint;
885
886 ///
887 alias core.stdc.math.rint rint;
888 ///
889 alias core.stdc.math.rintf rint;
890 ///
891 alias core.stdc.math.rintl rint;
892
893 ///
894 alias core.stdc.math.lrint lrint;
895 ///
896 alias core.stdc.math.lrintf lrint;
897 ///
898 alias core.stdc.math.lrintl lrint;
899
900 ///
901 alias core.stdc.math.llrint llrint;
902 ///
903 alias core.stdc.math.llrintf llrint;
904 ///
905 alias core.stdc.math.llrintl llrint;
906
907 ///
908 alias core.stdc.math.round round;
909 ///
910 alias core.stdc.math.roundf round;
911 ///
912 alias core.stdc.math.roundl round;
913
914 ///
915 alias core.stdc.math.lround lround;
916 ///
917 alias core.stdc.math.lroundf lround;
918 ///
919 alias core.stdc.math.lroundl lround;
920
921 ///
922 alias core.stdc.math.llround llround;
923 ///
924 alias core.stdc.math.llroundf llround;
925 ///
926 alias core.stdc.math.llroundl llround;
927
928 ///
929 alias core.stdc.math.trunc trunc;
930 ///
931 alias core.stdc.math.truncf trunc;
932 ///
933 alias core.stdc.math.truncl trunc;
934
935 ///
936 alias core.stdc.math.remainder remainder;
937 ///
938 alias core.stdc.math.remainderf remainder;
939 ///
940 alias core.stdc.math.remainderl remainder;
941
942 ///
943 alias core.stdc.math.remquo remquo;
944 ///
945 alias core.stdc.math.remquof remquo;
946 ///
947 alias core.stdc.math.remquol remquo;
948
949 ///
950 alias core.stdc.math.copysign copysign;
951 ///
952 alias core.stdc.math.copysignf copysign;
953 ///
954 alias core.stdc.math.copysignl copysign;
955
956 ///
957 alias core.stdc.math.nextafter nextafter;
958 ///
959 alias core.stdc.math.nextafterf nextafter;
960 ///
961 alias core.stdc.math.nextafterl nextafter;
962
963 ///
964 alias core.stdc.math.nexttoward nexttoward;
965 ///
966 alias core.stdc.math.nexttowardf nexttoward;
967 ///
968 alias core.stdc.math.nexttowardl nexttoward;
969
970 ///
971 alias core.stdc.math.fdim fdim;
972 ///
973 alias core.stdc.math.fdimf fdim;
974 ///
975 alias core.stdc.math.fdiml fdim;
976
977 ///
978 alias core.stdc.math.fmax fmax;
979 ///
980 alias core.stdc.math.fmaxf fmax;
981 ///
982 alias core.stdc.math.fmaxl fmax;
983
984 ///
985 alias core.stdc.math.fmin fmin;
986 ///
987 alias core.stdc.math.fmin fmin;
988 ///
989 alias core.stdc.math.fminl fmin;
990
991 ///
992 alias core.stdc.math.fma fma;
993 ///
994 alias core.stdc.math.fmaf fma;
995 ///
996 alias core.stdc.math.fmal fma;
997
998 // @@@DEPRECATED_2.105@@@
999 deprecated alias core.stdc.complex.carg carg;
1000 deprecated alias core.stdc.complex.cargf carg;
1001 deprecated alias core.stdc.complex.cargl carg;
1002 deprecated alias core.stdc.complex.cimag cimag;
1003 deprecated alias core.stdc.complex.cimagf cimag;
1004 deprecated alias core.stdc.complex.cimagl cimag;
1005 deprecated alias core.stdc.complex.conj conj;
1006 deprecated alias core.stdc.complex.conjf conj;
1007 deprecated alias core.stdc.complex.conjl conj;
1008 deprecated alias core.stdc.complex.cproj cproj;
1009 deprecated alias core.stdc.complex.cprojf cproj;
1010 deprecated alias core.stdc.complex.cprojl cproj;
1011
1012 // deprecated alias core.stdc.complex.creal creal;
1013 // deprecated alias core.stdc.complex.crealf creal;
1014 // deprecated alias core.stdc.complex.creall creal;
1015 }
1016 else
1017 {
1018 ///
1019 alias core.stdc.math.acos acos;
1020 ///
1021 alias core.stdc.math.acosf acos;
1022 ///
1023 alias core.stdc.math.acosl acos;
1024
1025 // @@@DEPRECATED_2.105@@@
1026 deprecated alias core.stdc.complex.cacos acos;
1027 deprecated alias core.stdc.complex.cacosf acos;
1028 deprecated alias core.stdc.complex.cacosl acos;
1029
1030 ///
1031 alias core.stdc.math.asin asin;
1032 ///
1033 alias core.stdc.math.asinf asin;
1034 ///
1035 alias core.stdc.math.asinl asin;
1036
1037 // @@@DEPRECATED_2.105@@@
1038 deprecated alias core.stdc.complex.casin asin;
1039 deprecated alias core.stdc.complex.casinf asin;
1040 deprecated alias core.stdc.complex.casinl asin;
1041
1042 ///
1043 alias core.stdc.math.atan atan;
1044 ///
1045 alias core.stdc.math.atanf atan;
1046 ///
1047 alias core.stdc.math.atanl atan;
1048
1049 // @@@DEPRECATED_2.105@@@
1050 deprecated alias core.stdc.complex.catan atan;
1051 deprecated alias core.stdc.complex.catanf atan;
1052 deprecated alias core.stdc.complex.catanl atan;
1053
1054 ///
1055 alias core.stdc.math.atan2 atan2;
1056 ///
1057 alias core.stdc.math.atan2f atan2;
1058 ///
1059 alias core.stdc.math.atan2l atan2;
1060
1061 ///
1062 alias core.stdc.math.cos cos;
1063 ///
1064 alias core.stdc.math.cosf cos;
1065 ///
1066 alias core.stdc.math.cosl cos;
1067
1068 // @@@DEPRECATED_2.105@@@
1069 deprecated alias core.stdc.complex.ccos cos;
1070 deprecated alias core.stdc.complex.ccosf cos;
1071 deprecated alias core.stdc.complex.ccosl cos;
1072
1073 ///
1074 alias core.stdc.math.sin sin;
1075 ///
1076 alias core.stdc.math.sinf sin;
1077 ///
1078 alias core.stdc.math.sinl sin;
1079
1080 // @@@DEPRECATED_2.105@@@
1081 deprecated alias core.stdc.complex.csin csin;
1082 deprecated alias core.stdc.complex.csinf csin;
1083 deprecated alias core.stdc.complex.csinl csin;
1084
1085 ///
1086 alias core.stdc.math.tan tan;
1087 ///
1088 alias core.stdc.math.tanf tan;
1089 ///
1090 alias core.stdc.math.tanl tan;
1091
1092 // @@@DEPRECATED_2.105@@@
1093 deprecated alias core.stdc.complex.ctan tan;
1094 deprecated alias core.stdc.complex.ctanf tan;
1095 deprecated alias core.stdc.complex.ctanl tan;
1096
1097 ///
1098 alias core.stdc.math.acosh acosh;
1099 ///
1100 alias core.stdc.math.acoshf acosh;
1101 ///
1102 alias core.stdc.math.acoshl acosh;
1103
1104 // @@@DEPRECATED_2.105@@@
1105 deprecated alias core.stdc.complex.cacosh acosh;
1106 deprecated alias core.stdc.complex.cacoshf acosh;
1107 deprecated alias core.stdc.complex.cacoshl acosh;
1108
1109 ///
1110 alias core.stdc.math.asinh asinh;
1111 ///
1112 alias core.stdc.math.asinhf asinh;
1113 ///
1114 alias core.stdc.math.asinhl asinh;
1115
1116 // @@@DEPRECATED_2.105@@@
1117 deprecated alias core.stdc.complex.casinh asinh;
1118 deprecated alias core.stdc.complex.casinhf asinh;
1119 deprecated alias core.stdc.complex.casinhl asinh;
1120
1121 ///
1122 alias core.stdc.math.atanh atanh;
1123 ///
1124 alias core.stdc.math.atanhf atanh;
1125 ///
1126 alias core.stdc.math.atanhl atanh;
1127
1128 // @@@DEPRECATED_2.105@@@
1129 deprecated alias core.stdc.complex.catanh atanh;
1130 deprecated alias core.stdc.complex.catanhf atanh;
1131 deprecated alias core.stdc.complex.catanhl atanh;
1132
1133 ///
1134 alias core.stdc.math.cosh cosh;
1135 ///
1136 alias core.stdc.math.coshf cosh;
1137 ///
1138 alias core.stdc.math.coshl cosh;
1139
1140 // @@@DEPRECATED_2.105@@@
1141 deprecated alias core.stdc.complex.ccosh cosh;
1142 deprecated alias core.stdc.complex.ccoshf cosh;
1143 deprecated alias core.stdc.complex.ccoshl cosh;
1144
1145 ///
1146 alias core.stdc.math.sinh sinh;
1147 ///
1148 alias core.stdc.math.sinhf sinh;
1149 ///
1150 alias core.stdc.math.sinhl sinh;
1151
1152 // @@@DEPRECATED_2.105@@@
1153 deprecated alias core.stdc.complex.csinh sinh;
1154 deprecated alias core.stdc.complex.csinhf sinh;
1155 deprecated alias core.stdc.complex.csinhl sinh;
1156
1157 ///
1158 alias core.stdc.math.tanh tanh;
1159 ///
1160 alias core.stdc.math.tanhf tanh;
1161 ///
1162 alias core.stdc.math.tanhl tanh;
1163
1164 // @@@DEPRECATED_2.105@@@
1165 deprecated alias core.stdc.complex.ctanh tanh;
1166 deprecated alias core.stdc.complex.ctanhf tanh;
1167 deprecated alias core.stdc.complex.ctanhl tanh;
1168
1169 ///
1170 alias core.stdc.math.exp exp;
1171 ///
1172 alias core.stdc.math.expf exp;
1173 ///
1174 alias core.stdc.math.expl exp;
1175
1176 // @@@DEPRECATED_2.105@@@
1177 deprecated alias core.stdc.complex.cexp exp;
1178 deprecated alias core.stdc.complex.cexpf exp;
1179 deprecated alias core.stdc.complex.cexpl exp;
1180
1181 ///
1182 alias core.stdc.math.exp2 exp2;
1183 ///
1184 alias core.stdc.math.exp2f exp2;
1185 ///
1186 alias core.stdc.math.exp2l exp2;
1187
1188 ///
1189 alias core.stdc.math.expm1 expm1;
1190 ///
1191 alias core.stdc.math.expm1f expm1;
1192 ///
1193 alias core.stdc.math.expm1l expm1;
1194
1195 ///
1196 alias core.stdc.math.frexp frexp;
1197 ///
1198 alias core.stdc.math.frexpf frexp;
1199 ///
1200 alias core.stdc.math.frexpl frexp;
1201
1202 ///
1203 alias core.stdc.math.ilogb ilogb;
1204 ///
1205 alias core.stdc.math.ilogbf ilogb;
1206 ///
1207 alias core.stdc.math.ilogbl ilogb;
1208
1209 ///
1210 alias core.stdc.math.ldexp ldexp;
1211 ///
1212 alias core.stdc.math.ldexpf ldexp;
1213 ///
1214 alias core.stdc.math.ldexpl ldexp;
1215
1216 ///
1217 alias core.stdc.math.log log;
1218 ///
1219 alias core.stdc.math.logf log;
1220 ///
1221 alias core.stdc.math.logl log;
1222
1223 // @@@DEPRECATED_2.105@@@
1224 deprecated alias core.stdc.complex.clog log;
1225 deprecated alias core.stdc.complex.clogf log;
1226 deprecated alias core.stdc.complex.clogl log;
1227
1228 ///
1229 alias core.stdc.math.log10 log10;
1230 ///
1231 alias core.stdc.math.log10f log10;
1232 ///
1233 alias core.stdc.math.log10l log10;
1234
1235 ///
1236 alias core.stdc.math.log1p log1p;
1237 ///
1238 alias core.stdc.math.log1pf log1p;
1239 ///
1240 alias core.stdc.math.log1pl log1p;
1241
1242 ///
1243 alias core.stdc.math.log2 log2;
1244 ///
1245 alias core.stdc.math.log2f log2;
1246 ///
1247 alias core.stdc.math.log2l log2;
1248
1249 ///
1250 alias core.stdc.math.logb logb;
1251 ///
1252 alias core.stdc.math.logbf logb;
1253 ///
1254 alias core.stdc.math.logbl logb;
1255
1256 ///
1257 alias core.stdc.math.modf modf;
1258 ///
1259 alias core.stdc.math.modff modf;
1260 ///
1261 alias core.stdc.math.modfl modf;
1262
1263 ///
1264 alias core.stdc.math.scalbn scalbn;
1265 ///
1266 alias core.stdc.math.scalbnf scalbn;
1267 ///
1268 alias core.stdc.math.scalbnl scalbn;
1269
1270 ///
1271 alias core.stdc.math.scalbln scalbln;
1272 ///
1273 alias core.stdc.math.scalblnf scalbln;
1274 ///
1275 alias core.stdc.math.scalblnl scalbln;
1276
1277 ///
1278 alias core.stdc.math.cbrt cbrt;
1279 ///
1280 alias core.stdc.math.cbrtf cbrt;
1281 ///
1282 alias core.stdc.math.cbrtl cbrt;
1283
1284 ///
1285 alias core.stdc.math.fabs fabs;
1286 version (CRuntime_Microsoft)
1287 {
1288 version (MinGW)
1289 {
1290 ///
1291 alias core.stdc.math.fabsf fabs;
1292 ///
1293 alias core.stdc.math.fabsl fabs;
1294 }
1295 }
1296 else
1297 {
1298 ///
1299 alias core.stdc.math.fabsf fabs;
1300 ///
1301 alias core.stdc.math.fabsl fabs;
1302 }
1303
1304 // @@@DEPRECATED_2.105@@@
1305 deprecated alias core.stdc.complex.cabs fabs;
1306 deprecated alias core.stdc.complex.cabsf fabs;
1307 deprecated alias core.stdc.complex.cabsl fabs;
1308
1309 ///
1310 alias core.stdc.math.hypot hypot;
1311 ///
1312 alias core.stdc.math.hypotf hypot;
1313 ///
1314 alias core.stdc.math.hypotl hypot;
1315
1316 ///
1317 alias core.stdc.math.pow pow;
1318 ///
1319 alias core.stdc.math.powf pow;
1320 ///
1321 alias core.stdc.math.powl pow;
1322
1323 // @@@DEPRECATED_2.105@@@
1324 deprecated alias core.stdc.complex.cpow pow;
1325 deprecated alias core.stdc.complex.cpowf pow;
1326 deprecated alias core.stdc.complex.cpowl pow;
1327
1328 ///
1329 alias core.stdc.math.sqrt sqrt;
1330 ///
1331 alias core.stdc.math.sqrtf sqrt;
1332 ///
1333 alias core.stdc.math.sqrtl sqrt;
1334
1335 // @@@DEPRECATED_2.105@@@
1336 deprecated alias core.stdc.complex.csqrt sqrt;
1337 deprecated alias core.stdc.complex.csqrtf sqrt;
1338 deprecated alias core.stdc.complex.csqrtl sqrt;
1339
1340 ///
1341 alias core.stdc.math.erf erf;
1342 ///
1343 alias core.stdc.math.erff erf;
1344 ///
1345 alias core.stdc.math.erfl erf;
1346
1347 ///
1348 alias core.stdc.math.erfc erfc;
1349 ///
1350 alias core.stdc.math.erfcf erfc;
1351 ///
1352 alias core.stdc.math.erfcl erfc;
1353
1354 ///
1355 alias core.stdc.math.lgamma lgamma;
1356 ///
1357 alias core.stdc.math.lgammaf lgamma;
1358 ///
1359 alias core.stdc.math.lgammal lgamma;
1360
1361 ///
1362 alias core.stdc.math.tgamma tgamma;
1363 ///
1364 alias core.stdc.math.tgammaf tgamma;
1365 ///
1366 alias core.stdc.math.tgammal tgamma;
1367
1368 ///
1369 alias core.stdc.math.ceil ceil;
1370 ///
1371 alias core.stdc.math.ceilf ceil;
1372 ///
1373 alias core.stdc.math.ceill ceil;
1374
1375 ///
1376 alias core.stdc.math.floor floor;
1377 ///
1378 alias core.stdc.math.floorf floor;
1379 ///
1380 alias core.stdc.math.floorl floor;
1381
1382 ///
1383 alias core.stdc.math.nearbyint nearbyint;
1384 ///
1385 alias core.stdc.math.nearbyintf nearbyint;
1386 ///
1387 alias core.stdc.math.nearbyintl nearbyint;
1388
1389 ///
1390 alias core.stdc.math.rint rint;
1391 ///
1392 alias core.stdc.math.rintf rint;
1393 ///
1394 alias core.stdc.math.rintl rint;
1395
1396 ///
1397 alias core.stdc.math.lrint lrint;
1398 ///
1399 alias core.stdc.math.lrintf lrint;
1400 ///
1401 alias core.stdc.math.lrintl lrint;
1402
1403 ///
1404 alias core.stdc.math.llrint llrint;
1405 ///
1406 alias core.stdc.math.llrintf llrint;
1407 ///
1408 alias core.stdc.math.llrintl llrint;
1409
1410 ///
1411 alias core.stdc.math.round round;
1412 ///
1413 alias core.stdc.math.roundf round;
1414 ///
1415 alias core.stdc.math.roundl round;
1416
1417 ///
1418 alias core.stdc.math.lround lround;
1419 ///
1420 alias core.stdc.math.lroundf lround;
1421 ///
1422 alias core.stdc.math.lroundl lround;
1423
1424 ///
1425 alias core.stdc.math.llround llround;
1426 ///
1427 alias core.stdc.math.llroundf llround;
1428 ///
1429 alias core.stdc.math.llroundl llround;
1430
1431 ///
1432 alias core.stdc.math.trunc trunc;
1433 ///
1434 alias core.stdc.math.truncf trunc;
1435 ///
1436 alias core.stdc.math.truncl trunc;
1437
1438 ///
1439 alias core.stdc.math.fmod fmod;
1440 ///
1441 alias core.stdc.math.fmodf fmod;
1442 ///
1443 alias core.stdc.math.fmodl fmod;
1444
1445 ///
1446 alias core.stdc.math.remainder remainder;
1447 ///
1448 alias core.stdc.math.remainderf remainder;
1449 ///
1450 alias core.stdc.math.remainderl remainder;
1451
1452 ///
1453 alias core.stdc.math.remquo remquo;
1454 ///
1455 alias core.stdc.math.remquof remquo;
1456 ///
1457 alias core.stdc.math.remquol remquo;
1458
1459 ///
1460 alias core.stdc.math.copysign copysign;
1461 ///
1462 alias core.stdc.math.copysignf copysign;
1463 ///
1464 alias core.stdc.math.copysignl copysign;
1465
1466 ///
1467 alias core.stdc.math.nan nan;
1468 ///
1469 alias core.stdc.math.nanf nan;
1470 ///
1471 alias core.stdc.math.nanl nan;
1472
1473 ///
1474 alias core.stdc.math.nextafter nextafter;
1475 ///
1476 alias core.stdc.math.nextafterf nextafter;
1477 ///
1478 alias core.stdc.math.nextafterl nextafter;
1479
1480 ///
1481 alias core.stdc.math.nexttoward nexttoward;
1482 ///
1483 alias core.stdc.math.nexttowardf nexttoward;
1484 ///
1485 alias core.stdc.math.nexttowardl nexttoward;
1486
1487 ///
1488 alias core.stdc.math.fdim fdim;
1489 ///
1490 alias core.stdc.math.fdimf fdim;
1491 ///
1492 alias core.stdc.math.fdiml fdim;
1493
1494 ///
1495 alias core.stdc.math.fmax fmax;
1496 ///
1497 alias core.stdc.math.fmaxf fmax;
1498 ///
1499 alias core.stdc.math.fmaxl fmax;
1500
1501 ///
1502 alias core.stdc.math.fmin fmin;
1503 ///
1504 alias core.stdc.math.fmin fmin;
1505 ///
1506 alias core.stdc.math.fminl fmin;
1507
1508 ///
1509 alias core.stdc.math.fma fma;
1510 ///
1511 alias core.stdc.math.fmaf fma;
1512 ///
1513 alias core.stdc.math.fmal fma;
1514
1515 // @@@DEPRECATED_2.105@@@
1516 deprecated alias core.stdc.complex.carg carg;
1517 deprecated alias core.stdc.complex.cargf carg;
1518 deprecated alias core.stdc.complex.cargl carg;
1519 deprecated alias core.stdc.complex.cimag cimag;
1520 deprecated alias core.stdc.complex.cimagf cimag;
1521 deprecated alias core.stdc.complex.cimagl cimag;
1522 deprecated alias core.stdc.complex.conj conj;
1523 deprecated alias core.stdc.complex.conjf conj;
1524 deprecated alias core.stdc.complex.conjl conj;
1525 deprecated alias core.stdc.complex.cproj cproj;
1526 deprecated alias core.stdc.complex.cprojf cproj;
1527 deprecated alias core.stdc.complex.cprojl cproj;
1528 // deprecated alias core.stdc.complex.creal creal;
1529 // deprecated alias core.stdc.complex.crealf creal;
1530 // deprecated alias core.stdc.complex.creall creal;
1531 }