2 //===---------------------------- cmath -----------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
36 math_errhandling // C99
48 floating_point abs(floating_point x);
50 floating_point acos (arithmetic x);
52 long double acosl(long double x);
54 floating_point asin (arithmetic x);
56 long double asinl(long double x);
58 floating_point atan (arithmetic x);
60 long double atanl(long double x);
62 floating_point atan2 (arithmetic y, arithmetic x);
63 float atan2f(float y, float x);
64 long double atan2l(long double y, long double x);
66 floating_point ceil (arithmetic x);
68 long double ceill(long double x);
70 floating_point cos (arithmetic x);
72 long double cosl(long double x);
74 floating_point cosh (arithmetic x);
76 long double coshl(long double x);
78 floating_point exp (arithmetic x);
80 long double expl(long double x);
82 floating_point fabs (arithmetic x);
84 long double fabsl(long double x);
86 floating_point floor (arithmetic x);
87 float floorf(float x);
88 long double floorl(long double x);
90 floating_point fmod (arithmetic x, arithmetic y);
91 float fmodf(float x, float y);
92 long double fmodl(long double x, long double y);
94 floating_point frexp (arithmetic value, int* exp);
95 float frexpf(float value, int* exp);
96 long double frexpl(long double value, int* exp);
98 floating_point ldexp (arithmetic value, int exp);
99 float ldexpf(float value, int exp);
100 long double ldexpl(long double value, int exp);
102 floating_point log (arithmetic x);
104 long double logl(long double x);
106 floating_point log10 (arithmetic x);
107 float log10f(float x);
108 long double log10l(long double x);
110 floating_point modf (floating_point value, floating_point* iptr);
111 float modff(float value, float* iptr);
112 long double modfl(long double value, long double* iptr);
114 floating_point pow (arithmetic x, arithmetic y);
115 float powf(float x, float y);
116 long double powl(long double x, long double y);
118 floating_point sin (arithmetic x);
120 long double sinl(long double x);
122 floating_point sinh (arithmetic x);
123 float sinhf(float x);
124 long double sinhl(long double x);
126 floating_point sqrt (arithmetic x);
127 float sqrtf(float x);
128 long double sqrtl(long double x);
130 floating_point tan (arithmetic x);
132 long double tanl(long double x);
134 floating_point tanh (arithmetic x);
135 float tanhf(float x);
136 long double tanhl(long double x);
140 bool signbit(arithmetic x);
142 int fpclassify(arithmetic x);
144 bool isfinite(arithmetic x);
145 bool isinf(arithmetic x);
146 bool isnan(arithmetic x);
147 bool isnormal(arithmetic x);
149 bool isgreater(arithmetic x, arithmetic y);
150 bool isgreaterequal(arithmetic x, arithmetic y);
151 bool isless(arithmetic x, arithmetic y);
152 bool islessequal(arithmetic x, arithmetic y);
153 bool islessgreater(arithmetic x, arithmetic y);
154 bool isunordered(arithmetic x, arithmetic y);
156 floating_point acosh (arithmetic x);
157 float acoshf(float x);
158 long double acoshl(long double x);
160 floating_point asinh (arithmetic x);
161 float asinhf(float x);
162 long double asinhl(long double x);
164 floating_point atanh (arithmetic x);
165 float atanhf(float x);
166 long double atanhl(long double x);
168 floating_point cbrt (arithmetic x);
169 float cbrtf(float x);
170 long double cbrtl(long double x);
172 floating_point copysign (arithmetic x, arithmetic y);
173 float copysignf(float x, float y);
174 long double copysignl(long double x, long double y);
176 floating_point erf (arithmetic x);
178 long double erfl(long double x);
180 floating_point erfc (arithmetic x);
181 float erfcf(float x);
182 long double erfcl(long double x);
184 floating_point exp2 (arithmetic x);
185 float exp2f(float x);
186 long double exp2l(long double x);
188 floating_point expm1 (arithmetic x);
189 float expm1f(float x);
190 long double expm1l(long double x);
192 floating_point fdim (arithmetic x, arithmetic y);
193 float fdimf(float x, float y);
194 long double fdiml(long double x, long double y);
196 floating_point fma (arithmetic x, arithmetic y, arithmetic z);
197 float fmaf(float x, float y, float z);
198 long double fmal(long double x, long double y, long double z);
200 floating_point fmax (arithmetic x, arithmetic y);
201 float fmaxf(float x, float y);
202 long double fmaxl(long double x, long double y);
204 floating_point fmin (arithmetic x, arithmetic y);
205 float fminf(float x, float y);
206 long double fminl(long double x, long double y);
208 floating_point hypot (arithmetic x, arithmetic y);
209 float hypotf(float x, float y);
210 long double hypotl(long double x, long double y);
212 int ilogb (arithmetic x);
214 int ilogbl(long double x);
216 floating_point lgamma (arithmetic x);
217 float lgammaf(float x);
218 long double lgammal(long double x);
220 long long llrint (arithmetic x);
221 long long llrintf(float x);
222 long long llrintl(long double x);
224 long long llround (arithmetic x);
225 long long llroundf(float x);
226 long long llroundl(long double x);
228 floating_point log1p (arithmetic x);
229 float log1pf(float x);
230 long double log1pl(long double x);
232 floating_point log2 (arithmetic x);
233 float log2f(float x);
234 long double log2l(long double x);
236 floating_point logb (arithmetic x);
237 float logbf(float x);
238 long double logbl(long double x);
240 long lrint (arithmetic x);
241 long lrintf(float x);
242 long lrintl(long double x);
244 long lround (arithmetic x);
245 long lroundf(float x);
246 long lroundl(long double x);
248 double nan (const char* str);
249 float nanf(const char* str);
250 long double nanl(const char* str);
252 floating_point nearbyint (arithmetic x);
253 float nearbyintf(float x);
254 long double nearbyintl(long double x);
256 floating_point nextafter (arithmetic x, arithmetic y);
257 float nextafterf(float x, float y);
258 long double nextafterl(long double x, long double y);
260 floating_point nexttoward (arithmetic x, long double y);
261 float nexttowardf(float x, long double y);
262 long double nexttowardl(long double x, long double y);
264 floating_point remainder (arithmetic x, arithmetic y);
265 float remainderf(float x, float y);
266 long double remainderl(long double x, long double y);
268 floating_point remquo (arithmetic x, arithmetic y, int* pquo);
269 float remquof(float x, float y, int* pquo);
270 long double remquol(long double x, long double y, int* pquo);
272 floating_point rint (arithmetic x);
273 float rintf(float x);
274 long double rintl(long double x);
276 floating_point round (arithmetic x);
277 float roundf(float x);
278 long double roundl(long double x);
280 floating_point scalbln (arithmetic x, long ex);
281 float scalblnf(float x, long ex);
282 long double scalblnl(long double x, long ex);
284 floating_point scalbn (arithmetic x, int ex);
285 float scalbnf(float x, int ex);
286 long double scalbnl(long double x, int ex);
288 floating_point tgamma (arithmetic x);
289 float tgammaf(float x);
290 long double tgammal(long double x);
292 floating_point trunc (arithmetic x);
293 float truncf(float x);
294 long double truncl(long double x);
302 #include <type_traits>
304 #ifdef _LIBCPP_MSVCRT
305 #include "support/win32/math_win32.h"
308 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
309 #pragma GCC system_header
317 _LIBCPP_ALWAYS_INLINE
319 __libcpp_signbit(_A1 __lcpp_x) _NOEXCEPT
321 return signbit(__lcpp_x);
327 inline _LIBCPP_INLINE_VISIBILITY
328 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
329 signbit(_A1 __lcpp_x) _NOEXCEPT
331 return __libcpp_signbit((typename std::__promote<_A1>::type)__lcpp_x);
341 _LIBCPP_ALWAYS_INLINE
343 __libcpp_fpclassify(_A1 __lcpp_x) _NOEXCEPT
345 return fpclassify(__lcpp_x);
351 inline _LIBCPP_INLINE_VISIBILITY
352 typename std::enable_if<std::is_arithmetic<_A1>::value, int>::type
353 fpclassify(_A1 __lcpp_x) _NOEXCEPT
355 return __libcpp_fpclassify((typename std::__promote<_A1>::type)__lcpp_x);
365 _LIBCPP_ALWAYS_INLINE
367 __libcpp_isfinite(_A1 __lcpp_x) _NOEXCEPT
369 return isfinite(__lcpp_x);
375 inline _LIBCPP_INLINE_VISIBILITY
376 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
377 isfinite(_A1 __lcpp_x) _NOEXCEPT
379 return __libcpp_isfinite((typename std::__promote<_A1>::type)__lcpp_x);
389 _LIBCPP_ALWAYS_INLINE
391 __libcpp_isinf(_A1 __lcpp_x) _NOEXCEPT
393 return isinf(__lcpp_x);
399 inline _LIBCPP_INLINE_VISIBILITY
400 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
401 isinf(_A1 __lcpp_x) _NOEXCEPT
403 return __libcpp_isinf((typename std::__promote<_A1>::type)__lcpp_x);
413 _LIBCPP_ALWAYS_INLINE
415 __libcpp_isnan(_A1 __lcpp_x) _NOEXCEPT
417 return isnan(__lcpp_x);
423 inline _LIBCPP_INLINE_VISIBILITY
424 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
425 isnan(_A1 __lcpp_x) _NOEXCEPT
427 return __libcpp_isnan((typename std::__promote<_A1>::type)__lcpp_x);
437 _LIBCPP_ALWAYS_INLINE
439 __libcpp_isnormal(_A1 __lcpp_x) _NOEXCEPT
441 return isnormal(__lcpp_x);
447 inline _LIBCPP_INLINE_VISIBILITY
448 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type
449 isnormal(_A1 __lcpp_x) _NOEXCEPT
451 return __libcpp_isnormal((typename std::__promote<_A1>::type)__lcpp_x);
460 template <class _A1, class _A2>
461 _LIBCPP_ALWAYS_INLINE
463 __libcpp_isgreater(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
465 return isgreater(__lcpp_x, __lcpp_y);
470 template <class _A1, class _A2>
471 inline _LIBCPP_INLINE_VISIBILITY
472 typename std::enable_if
474 std::is_arithmetic<_A1>::value &&
475 std::is_arithmetic<_A2>::value,
478 isgreater(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
480 typedef typename std::__promote<_A1, _A2>::type type;
481 return __libcpp_isgreater((type)__lcpp_x, (type)__lcpp_y);
488 #ifdef isgreaterequal
490 template <class _A1, class _A2>
491 _LIBCPP_ALWAYS_INLINE
493 __libcpp_isgreaterequal(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
495 return isgreaterequal(__lcpp_x, __lcpp_y);
498 #undef isgreaterequal
500 template <class _A1, class _A2>
501 inline _LIBCPP_INLINE_VISIBILITY
502 typename std::enable_if
504 std::is_arithmetic<_A1>::value &&
505 std::is_arithmetic<_A2>::value,
508 isgreaterequal(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
510 typedef typename std::__promote<_A1, _A2>::type type;
511 return __libcpp_isgreaterequal((type)__lcpp_x, (type)__lcpp_y);
514 #endif // isgreaterequal
520 template <class _A1, class _A2>
521 _LIBCPP_ALWAYS_INLINE
523 __libcpp_isless(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
525 return isless(__lcpp_x, __lcpp_y);
530 template <class _A1, class _A2>
531 inline _LIBCPP_INLINE_VISIBILITY
532 typename std::enable_if
534 std::is_arithmetic<_A1>::value &&
535 std::is_arithmetic<_A2>::value,
538 isless(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
540 typedef typename std::__promote<_A1, _A2>::type type;
541 return __libcpp_isless((type)__lcpp_x, (type)__lcpp_y);
550 template <class _A1, class _A2>
551 _LIBCPP_ALWAYS_INLINE
553 __libcpp_islessequal(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
555 return islessequal(__lcpp_x, __lcpp_y);
560 template <class _A1, class _A2>
561 inline _LIBCPP_INLINE_VISIBILITY
562 typename std::enable_if
564 std::is_arithmetic<_A1>::value &&
565 std::is_arithmetic<_A2>::value,
568 islessequal(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
570 typedef typename std::__promote<_A1, _A2>::type type;
571 return __libcpp_islessequal((type)__lcpp_x, (type)__lcpp_y);
574 #endif // islessequal
580 template <class _A1, class _A2>
581 _LIBCPP_ALWAYS_INLINE
583 __libcpp_islessgreater(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
585 return islessgreater(__lcpp_x, __lcpp_y);
590 template <class _A1, class _A2>
591 inline _LIBCPP_INLINE_VISIBILITY
592 typename std::enable_if
594 std::is_arithmetic<_A1>::value &&
595 std::is_arithmetic<_A2>::value,
598 islessgreater(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
600 typedef typename std::__promote<_A1, _A2>::type type;
601 return __libcpp_islessgreater((type)__lcpp_x, (type)__lcpp_y);
604 #endif // islessgreater
610 template <class _A1, class _A2>
611 _LIBCPP_ALWAYS_INLINE
613 __libcpp_isunordered(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
615 return isunordered(__lcpp_x, __lcpp_y);
620 template <class _A1, class _A2>
621 inline _LIBCPP_INLINE_VISIBILITY
622 typename std::enable_if
624 std::is_arithmetic<_A1>::value &&
625 std::is_arithmetic<_A2>::value,
628 isunordered(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
630 typedef typename std::__promote<_A1, _A2>::type type;
631 return __libcpp_isunordered((type)__lcpp_x, (type)__lcpp_y);
634 #endif // isunordered
636 _LIBCPP_BEGIN_NAMESPACE_STD
645 using ::isgreaterequal;
648 using ::islessgreater;
661 #if !defined(_AIX) && !defined(__sun__)
662 inline _LIBCPP_INLINE_VISIBILITY
664 abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
666 inline _LIBCPP_INLINE_VISIBILITY
668 abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);}
670 inline _LIBCPP_INLINE_VISIBILITY
672 abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
673 #endif // !defined(_AIX)
682 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
683 inline _LIBCPP_INLINE_VISIBILITY float acos(float __lcpp_x) _NOEXCEPT {return acosf(__lcpp_x);}
684 inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return acosl(__lcpp_x);}
688 inline _LIBCPP_INLINE_VISIBILITY
689 typename enable_if<is_integral<_A1>::value, double>::type
690 acos(_A1 __lcpp_x) _NOEXCEPT {return acos((double)__lcpp_x);}
697 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
698 inline _LIBCPP_INLINE_VISIBILITY float asin(float __lcpp_x) _NOEXCEPT {return asinf(__lcpp_x);}
699 inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return asinl(__lcpp_x);}
703 inline _LIBCPP_INLINE_VISIBILITY
704 typename enable_if<is_integral<_A1>::value, double>::type
705 asin(_A1 __lcpp_x) _NOEXCEPT {return asin((double)__lcpp_x);}
712 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
713 inline _LIBCPP_INLINE_VISIBILITY float atan(float __lcpp_x) _NOEXCEPT {return atanf(__lcpp_x);}
714 inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return atanl(__lcpp_x);}
718 inline _LIBCPP_INLINE_VISIBILITY
719 typename enable_if<is_integral<_A1>::value, double>::type
720 atan(_A1 __lcpp_x) _NOEXCEPT {return atan((double)__lcpp_x);}
727 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
728 inline _LIBCPP_INLINE_VISIBILITY float atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT {return atan2f(__lcpp_y, __lcpp_x);}
729 inline _LIBCPP_INLINE_VISIBILITY long double atan2(long double __lcpp_y, long double __lcpp_x) _NOEXCEPT {return atan2l(__lcpp_y, __lcpp_x);}
732 template <class _A1, class _A2>
733 inline _LIBCPP_INLINE_VISIBILITY
734 typename __lazy_enable_if
736 is_arithmetic<_A1>::value &&
737 is_arithmetic<_A2>::value,
740 atan2(_A1 __lcpp_y, _A2 __lcpp_x) _NOEXCEPT
742 typedef typename __promote<_A1, _A2>::type __result_type;
743 static_assert((!(is_same<_A1, __result_type>::value &&
744 is_same<_A2, __result_type>::value)), "");
745 return atan2((__result_type)__lcpp_y, (__result_type)__lcpp_x);
753 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
754 inline _LIBCPP_INLINE_VISIBILITY float ceil(float __lcpp_x) _NOEXCEPT {return ceilf(__lcpp_x);}
755 inline _LIBCPP_INLINE_VISIBILITY long double ceil(long double __lcpp_x) _NOEXCEPT {return ceill(__lcpp_x);}
759 inline _LIBCPP_INLINE_VISIBILITY
760 typename enable_if<is_integral<_A1>::value, double>::type
761 ceil(_A1 __lcpp_x) _NOEXCEPT {return ceil((double)__lcpp_x);}
768 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
769 inline _LIBCPP_INLINE_VISIBILITY float cos(float __lcpp_x) _NOEXCEPT {return cosf(__lcpp_x);}
770 inline _LIBCPP_INLINE_VISIBILITY long double cos(long double __lcpp_x) _NOEXCEPT {return cosl(__lcpp_x);}
774 inline _LIBCPP_INLINE_VISIBILITY
775 typename enable_if<is_integral<_A1>::value, double>::type
776 cos(_A1 __lcpp_x) _NOEXCEPT {return cos((double)__lcpp_x);}
783 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
784 inline _LIBCPP_INLINE_VISIBILITY float cosh(float __lcpp_x) _NOEXCEPT {return coshf(__lcpp_x);}
785 inline _LIBCPP_INLINE_VISIBILITY long double cosh(long double __lcpp_x) _NOEXCEPT {return coshl(__lcpp_x);}
789 inline _LIBCPP_INLINE_VISIBILITY
790 typename enable_if<is_integral<_A1>::value, double>::type
791 cosh(_A1 __lcpp_x) _NOEXCEPT {return cosh((double)__lcpp_x);}
801 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
802 inline _LIBCPP_INLINE_VISIBILITY float exp(float __lcpp_x) _NOEXCEPT {return expf(__lcpp_x);}
803 inline _LIBCPP_INLINE_VISIBILITY long double exp(long double __lcpp_x) _NOEXCEPT {return expl(__lcpp_x);}
808 inline _LIBCPP_INLINE_VISIBILITY
809 typename enable_if<is_integral<_A1>::value, double>::type
810 exp(_A1 __lcpp_x) _NOEXCEPT {return exp((double)__lcpp_x);}
817 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
818 inline _LIBCPP_INLINE_VISIBILITY float fabs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
819 inline _LIBCPP_INLINE_VISIBILITY long double fabs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
823 inline _LIBCPP_INLINE_VISIBILITY
824 typename enable_if<is_integral<_A1>::value, double>::type
825 fabs(_A1 __lcpp_x) _NOEXCEPT {return fabs((double)__lcpp_x);}
832 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
833 inline _LIBCPP_INLINE_VISIBILITY float floor(float __lcpp_x) _NOEXCEPT {return floorf(__lcpp_x);}
834 inline _LIBCPP_INLINE_VISIBILITY long double floor(long double __lcpp_x) _NOEXCEPT {return floorl(__lcpp_x);}
838 inline _LIBCPP_INLINE_VISIBILITY
839 typename enable_if<is_integral<_A1>::value, double>::type
840 floor(_A1 __lcpp_x) _NOEXCEPT {return floor((double)__lcpp_x);}
849 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
850 inline _LIBCPP_INLINE_VISIBILITY float fmod(float __lcpp_x, float __lcpp_y) _NOEXCEPT {return fmodf(__lcpp_x, __lcpp_y);}
851 inline _LIBCPP_INLINE_VISIBILITY long double fmod(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return fmodl(__lcpp_x, __lcpp_y);}
854 template <class _A1, class _A2>
855 inline _LIBCPP_INLINE_VISIBILITY
856 typename __lazy_enable_if
858 is_arithmetic<_A1>::value &&
859 is_arithmetic<_A2>::value,
862 fmod(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
864 typedef typename __promote<_A1, _A2>::type __result_type;
865 static_assert((!(is_same<_A1, __result_type>::value &&
866 is_same<_A2, __result_type>::value)), "");
867 return fmod((__result_type)__lcpp_x, (__result_type)__lcpp_y);
876 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
877 inline _LIBCPP_INLINE_VISIBILITY float frexp(float __lcpp_x, int* __lcpp_e) _NOEXCEPT {return frexpf(__lcpp_x, __lcpp_e);}
878 inline _LIBCPP_INLINE_VISIBILITY long double frexp(long double __lcpp_x, int* __lcpp_e) _NOEXCEPT {return frexpl(__lcpp_x, __lcpp_e);}
882 inline _LIBCPP_INLINE_VISIBILITY
883 typename enable_if<is_integral<_A1>::value, double>::type
884 frexp(_A1 __lcpp_x, int* __lcpp_e) _NOEXCEPT {return frexp((double)__lcpp_x, __lcpp_e);}
891 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
892 inline _LIBCPP_INLINE_VISIBILITY float ldexp(float __lcpp_x, int __lcpp_e) _NOEXCEPT {return ldexpf(__lcpp_x, __lcpp_e);}
893 inline _LIBCPP_INLINE_VISIBILITY long double ldexp(long double __lcpp_x, int __lcpp_e) _NOEXCEPT {return ldexpl(__lcpp_x, __lcpp_e);}
897 inline _LIBCPP_INLINE_VISIBILITY
898 typename enable_if<is_integral<_A1>::value, double>::type
899 ldexp(_A1 __lcpp_x, int __lcpp_e) _NOEXCEPT {return ldexp((double)__lcpp_x, __lcpp_e);}
908 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
909 inline _LIBCPP_INLINE_VISIBILITY float log(float __lcpp_x) _NOEXCEPT {return logf(__lcpp_x);}
910 inline _LIBCPP_INLINE_VISIBILITY long double log(long double __lcpp_x) _NOEXCEPT {return logl(__lcpp_x);}
914 inline _LIBCPP_INLINE_VISIBILITY
915 typename enable_if<is_integral<_A1>::value, double>::type
916 log(_A1 __lcpp_x) _NOEXCEPT {return log((double)__lcpp_x);}
924 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
925 inline _LIBCPP_INLINE_VISIBILITY float log10(float __lcpp_x) _NOEXCEPT {return log10f(__lcpp_x);}
926 inline _LIBCPP_INLINE_VISIBILITY long double log10(long double __lcpp_x) _NOEXCEPT {return log10l(__lcpp_x);}
930 inline _LIBCPP_INLINE_VISIBILITY
931 typename enable_if<is_integral<_A1>::value, double>::type
932 log10(_A1 __lcpp_x) _NOEXCEPT {return log10((double)__lcpp_x);}
939 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
940 inline _LIBCPP_INLINE_VISIBILITY float modf(float __lcpp_x, float* __lcpp_y) _NOEXCEPT {return modff(__lcpp_x, __lcpp_y);}
941 inline _LIBCPP_INLINE_VISIBILITY long double modf(long double __lcpp_x, long double* __lcpp_y) _NOEXCEPT {return modfl(__lcpp_x, __lcpp_y);}
952 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
953 inline _LIBCPP_INLINE_VISIBILITY float pow(float __lcpp_x, float __lcpp_y) _NOEXCEPT {return powf(__lcpp_x, __lcpp_y);}
954 inline _LIBCPP_INLINE_VISIBILITY long double pow(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return powl(__lcpp_x, __lcpp_y);}
957 template <class _A1, class _A2>
958 inline _LIBCPP_INLINE_VISIBILITY
959 typename __lazy_enable_if
961 is_arithmetic<_A1>::value &&
962 is_arithmetic<_A2>::value,
965 pow(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
967 typedef typename __promote<_A1, _A2>::type __result_type;
968 static_assert((!(is_same<_A1, __result_type>::value &&
969 is_same<_A2, __result_type>::value)), "");
970 return pow((__result_type)__lcpp_x, (__result_type)__lcpp_y);
978 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
979 inline _LIBCPP_INLINE_VISIBILITY float sin(float __lcpp_x) _NOEXCEPT {return sinf(__lcpp_x);}
980 inline _LIBCPP_INLINE_VISIBILITY long double sin(long double __lcpp_x) _NOEXCEPT {return sinl(__lcpp_x);}
984 inline _LIBCPP_INLINE_VISIBILITY
985 typename enable_if<is_integral<_A1>::value, double>::type
986 sin(_A1 __lcpp_x) _NOEXCEPT {return sin((double)__lcpp_x);}
993 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
994 inline _LIBCPP_INLINE_VISIBILITY float sinh(float __lcpp_x) _NOEXCEPT {return sinhf(__lcpp_x);}
995 inline _LIBCPP_INLINE_VISIBILITY long double sinh(long double __lcpp_x) _NOEXCEPT {return sinhl(__lcpp_x);}
999 inline _LIBCPP_INLINE_VISIBILITY
1000 typename enable_if<is_integral<_A1>::value, double>::type
1001 sinh(_A1 __lcpp_x) _NOEXCEPT {return sinh((double)__lcpp_x);}
1010 #if !(defined(_LIBCPP_MSVCRT) || defined(__sun__) || defined(_AIX))
1011 inline _LIBCPP_INLINE_VISIBILITY float sqrt(float __lcpp_x) _NOEXCEPT {return sqrtf(__lcpp_x);}
1012 inline _LIBCPP_INLINE_VISIBILITY long double sqrt(long double __lcpp_x) _NOEXCEPT {return sqrtl(__lcpp_x);}
1015 template <class _A1>
1016 inline _LIBCPP_INLINE_VISIBILITY
1017 typename enable_if<is_integral<_A1>::value, double>::type
1018 sqrt(_A1 __lcpp_x) _NOEXCEPT {return sqrt((double)__lcpp_x);}
1026 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
1027 inline _LIBCPP_INLINE_VISIBILITY float tan(float __lcpp_x) _NOEXCEPT {return tanf(__lcpp_x);}
1028 inline _LIBCPP_INLINE_VISIBILITY long double tan(long double __lcpp_x) _NOEXCEPT {return tanl(__lcpp_x);}
1031 template <class _A1>
1032 inline _LIBCPP_INLINE_VISIBILITY
1033 typename enable_if<is_integral<_A1>::value, double>::type
1034 tan(_A1 __lcpp_x) _NOEXCEPT {return tan((double)__lcpp_x);}
1041 #if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
1042 inline _LIBCPP_INLINE_VISIBILITY float tanh(float __lcpp_x) _NOEXCEPT {return tanhf(__lcpp_x);}
1043 inline _LIBCPP_INLINE_VISIBILITY long double tanh(long double __lcpp_x) _NOEXCEPT {return tanhl(__lcpp_x);}
1046 template <class _A1>
1047 inline _LIBCPP_INLINE_VISIBILITY
1048 typename enable_if<is_integral<_A1>::value, double>::type
1049 tanh(_A1 __lcpp_x) _NOEXCEPT {return tanh((double)__lcpp_x);}
1053 #ifndef _LIBCPP_MSVCRT
1057 inline _LIBCPP_INLINE_VISIBILITY float acosh(float __lcpp_x) _NOEXCEPT {return acoshf(__lcpp_x);}
1058 inline _LIBCPP_INLINE_VISIBILITY long double acosh(long double __lcpp_x) _NOEXCEPT {return acoshl(__lcpp_x);}
1060 template <class _A1>
1061 inline _LIBCPP_INLINE_VISIBILITY
1062 typename enable_if<is_integral<_A1>::value, double>::type
1063 acosh(_A1 __lcpp_x) _NOEXCEPT {return acosh((double)__lcpp_x);}
1068 #ifndef _LIBCPP_MSVCRT
1072 inline _LIBCPP_INLINE_VISIBILITY float asinh(float __lcpp_x) _NOEXCEPT {return asinhf(__lcpp_x);}
1073 inline _LIBCPP_INLINE_VISIBILITY long double asinh(long double __lcpp_x) _NOEXCEPT {return asinhl(__lcpp_x);}
1075 template <class _A1>
1076 inline _LIBCPP_INLINE_VISIBILITY
1077 typename enable_if<is_integral<_A1>::value, double>::type
1078 asinh(_A1 __lcpp_x) _NOEXCEPT {return asinh((double)__lcpp_x);}
1083 #ifndef _LIBCPP_MSVCRT
1087 inline _LIBCPP_INLINE_VISIBILITY float atanh(float __lcpp_x) _NOEXCEPT {return atanhf(__lcpp_x);}
1088 inline _LIBCPP_INLINE_VISIBILITY long double atanh(long double __lcpp_x) _NOEXCEPT {return atanhl(__lcpp_x);}
1090 template <class _A1>
1091 inline _LIBCPP_INLINE_VISIBILITY
1092 typename enable_if<is_integral<_A1>::value, double>::type
1093 atanh(_A1 __lcpp_x) _NOEXCEPT {return atanh((double)__lcpp_x);}
1098 #ifndef _LIBCPP_MSVCRT
1102 inline _LIBCPP_INLINE_VISIBILITY float cbrt(float __lcpp_x) _NOEXCEPT {return cbrtf(__lcpp_x);}
1103 inline _LIBCPP_INLINE_VISIBILITY long double cbrt(long double __lcpp_x) _NOEXCEPT {return cbrtl(__lcpp_x);}
1105 template <class _A1>
1106 inline _LIBCPP_INLINE_VISIBILITY
1107 typename enable_if<is_integral<_A1>::value, double>::type
1108 cbrt(_A1 __lcpp_x) _NOEXCEPT {return cbrt((double)__lcpp_x);}
1116 #if !defined(_VC_CRT_MAJOR_VERSION) || (_VC_CRT_MAJOR_VERSION < 12)
1117 inline _LIBCPP_INLINE_VISIBILITY float copysign(float __lcpp_x,
1118 float __lcpp_y) _NOEXCEPT {
1119 return copysignf(__lcpp_x, __lcpp_y);
1121 inline _LIBCPP_INLINE_VISIBILITY long double
1122 copysign(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {
1123 return copysignl(__lcpp_x, __lcpp_y);
1127 template <class _A1, class _A2>
1128 inline _LIBCPP_INLINE_VISIBILITY
1129 typename __lazy_enable_if
1131 is_arithmetic<_A1>::value &&
1132 is_arithmetic<_A2>::value,
1135 copysign(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
1137 typedef typename __promote<_A1, _A2>::type __result_type;
1138 static_assert((!(is_same<_A1, __result_type>::value &&
1139 is_same<_A2, __result_type>::value)), "");
1140 return copysign((__result_type)__lcpp_x, (__result_type)__lcpp_y);
1143 #ifndef _LIBCPP_MSVCRT
1150 inline _LIBCPP_INLINE_VISIBILITY float erf(float __lcpp_x) _NOEXCEPT {return erff(__lcpp_x);}
1151 inline _LIBCPP_INLINE_VISIBILITY long double erf(long double __lcpp_x) _NOEXCEPT {return erfl(__lcpp_x);}
1153 template <class _A1>
1154 inline _LIBCPP_INLINE_VISIBILITY
1155 typename enable_if<is_integral<_A1>::value, double>::type
1156 erf(_A1 __lcpp_x) _NOEXCEPT {return erf((double)__lcpp_x);}
1163 inline _LIBCPP_INLINE_VISIBILITY float erfc(float __lcpp_x) _NOEXCEPT {return erfcf(__lcpp_x);}
1164 inline _LIBCPP_INLINE_VISIBILITY long double erfc(long double __lcpp_x) _NOEXCEPT {return erfcl(__lcpp_x);}
1166 template <class _A1>
1167 inline _LIBCPP_INLINE_VISIBILITY
1168 typename enable_if<is_integral<_A1>::value, double>::type
1169 erfc(_A1 __lcpp_x) _NOEXCEPT {return erfc((double)__lcpp_x);}
1176 inline _LIBCPP_INLINE_VISIBILITY float exp2(float __lcpp_x) _NOEXCEPT {return exp2f(__lcpp_x);}
1177 inline _LIBCPP_INLINE_VISIBILITY long double exp2(long double __lcpp_x) _NOEXCEPT {return exp2l(__lcpp_x);}
1179 template <class _A1>
1180 inline _LIBCPP_INLINE_VISIBILITY
1181 typename enable_if<is_integral<_A1>::value, double>::type
1182 exp2(_A1 __lcpp_x) _NOEXCEPT {return exp2((double)__lcpp_x);}
1189 inline _LIBCPP_INLINE_VISIBILITY float expm1(float __lcpp_x) _NOEXCEPT {return expm1f(__lcpp_x);}
1190 inline _LIBCPP_INLINE_VISIBILITY long double expm1(long double __lcpp_x) _NOEXCEPT {return expm1l(__lcpp_x);}
1192 template <class _A1>
1193 inline _LIBCPP_INLINE_VISIBILITY
1194 typename enable_if<is_integral<_A1>::value, double>::type
1195 expm1(_A1 __lcpp_x) _NOEXCEPT {return expm1((double)__lcpp_x);}
1202 inline _LIBCPP_INLINE_VISIBILITY float fdim(float __lcpp_x, float __lcpp_y) _NOEXCEPT {return fdimf(__lcpp_x, __lcpp_y);}
1203 inline _LIBCPP_INLINE_VISIBILITY long double fdim(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return fdiml(__lcpp_x, __lcpp_y);}
1205 template <class _A1, class _A2>
1206 inline _LIBCPP_INLINE_VISIBILITY
1207 typename __lazy_enable_if
1209 is_arithmetic<_A1>::value &&
1210 is_arithmetic<_A2>::value,
1213 fdim(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
1215 typedef typename __promote<_A1, _A2>::type __result_type;
1216 static_assert((!(is_same<_A1, __result_type>::value &&
1217 is_same<_A2, __result_type>::value)), "");
1218 return fdim((__result_type)__lcpp_x, (__result_type)__lcpp_y);
1226 inline _LIBCPP_INLINE_VISIBILITY float fma(float __lcpp_x, float __lcpp_y, float __lcpp_z) _NOEXCEPT {return fmaf(__lcpp_x, __lcpp_y, __lcpp_z);}
1227 inline _LIBCPP_INLINE_VISIBILITY long double fma(long double __lcpp_x, long double __lcpp_y, long double __lcpp_z) _NOEXCEPT {return fmal(__lcpp_x, __lcpp_y, __lcpp_z);}
1229 template <class _A1, class _A2, class _A3>
1230 inline _LIBCPP_INLINE_VISIBILITY
1231 typename __lazy_enable_if
1233 is_arithmetic<_A1>::value &&
1234 is_arithmetic<_A2>::value &&
1235 is_arithmetic<_A3>::value,
1236 __promote<_A1, _A2, _A3>
1238 fma(_A1 __lcpp_x, _A2 __lcpp_y, _A3 __lcpp_z) _NOEXCEPT
1240 typedef typename __promote<_A1, _A2, _A3>::type __result_type;
1241 static_assert((!(is_same<_A1, __result_type>::value &&
1242 is_same<_A2, __result_type>::value &&
1243 is_same<_A3, __result_type>::value)), "");
1244 return fma((__result_type)__lcpp_x, (__result_type)__lcpp_y, (__result_type)__lcpp_z);
1252 inline _LIBCPP_INLINE_VISIBILITY float fmax(float __lcpp_x, float __lcpp_y) _NOEXCEPT {return fmaxf(__lcpp_x, __lcpp_y);}
1253 inline _LIBCPP_INLINE_VISIBILITY long double fmax(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return fmaxl(__lcpp_x, __lcpp_y);}
1255 template <class _A1, class _A2>
1256 inline _LIBCPP_INLINE_VISIBILITY
1257 typename __lazy_enable_if
1259 is_arithmetic<_A1>::value &&
1260 is_arithmetic<_A2>::value,
1263 fmax(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
1265 typedef typename __promote<_A1, _A2>::type __result_type;
1266 static_assert((!(is_same<_A1, __result_type>::value &&
1267 is_same<_A2, __result_type>::value)), "");
1268 return fmax((__result_type)__lcpp_x, (__result_type)__lcpp_y);
1276 inline _LIBCPP_INLINE_VISIBILITY float fmin(float __lcpp_x, float __lcpp_y) _NOEXCEPT {return fminf(__lcpp_x, __lcpp_y);}
1277 inline _LIBCPP_INLINE_VISIBILITY long double fmin(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return fminl(__lcpp_x, __lcpp_y);}
1279 template <class _A1, class _A2>
1280 inline _LIBCPP_INLINE_VISIBILITY
1281 typename __lazy_enable_if
1283 is_arithmetic<_A1>::value &&
1284 is_arithmetic<_A2>::value,
1287 fmin(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
1289 typedef typename __promote<_A1, _A2>::type __result_type;
1290 static_assert((!(is_same<_A1, __result_type>::value &&
1291 is_same<_A2, __result_type>::value)), "");
1292 return fmin((__result_type)__lcpp_x, (__result_type)__lcpp_y);
1300 inline _LIBCPP_INLINE_VISIBILITY float hypot(float __lcpp_x, float __lcpp_y) _NOEXCEPT {return hypotf(__lcpp_x, __lcpp_y);}
1301 inline _LIBCPP_INLINE_VISIBILITY long double hypot(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return hypotl(__lcpp_x, __lcpp_y);}
1303 template <class _A1, class _A2>
1304 inline _LIBCPP_INLINE_VISIBILITY
1305 typename __lazy_enable_if
1307 is_arithmetic<_A1>::value &&
1308 is_arithmetic<_A2>::value,
1311 hypot(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
1313 typedef typename __promote<_A1, _A2>::type __result_type;
1314 static_assert((!(is_same<_A1, __result_type>::value &&
1315 is_same<_A2, __result_type>::value)), "");
1316 return hypot((__result_type)__lcpp_x, (__result_type)__lcpp_y);
1324 inline _LIBCPP_INLINE_VISIBILITY int ilogb(float __lcpp_x) _NOEXCEPT {return ilogbf(__lcpp_x);}
1325 inline _LIBCPP_INLINE_VISIBILITY int ilogb(long double __lcpp_x) _NOEXCEPT {return ilogbl(__lcpp_x);}
1327 template <class _A1>
1328 inline _LIBCPP_INLINE_VISIBILITY
1329 typename enable_if<is_integral<_A1>::value, int>::type
1330 ilogb(_A1 __lcpp_x) _NOEXCEPT {return ilogb((double)__lcpp_x);}
1337 inline _LIBCPP_INLINE_VISIBILITY float lgamma(float __lcpp_x) _NOEXCEPT {return lgammaf(__lcpp_x);}
1338 inline _LIBCPP_INLINE_VISIBILITY long double lgamma(long double __lcpp_x) _NOEXCEPT {return lgammal(__lcpp_x);}
1341 template <class _A1>
1342 inline _LIBCPP_INLINE_VISIBILITY
1343 typename enable_if<is_integral<_A1>::value, double>::type
1344 lgamma(_A1 __lcpp_x) _NOEXCEPT {return lgamma((double)__lcpp_x);}
1352 inline _LIBCPP_INLINE_VISIBILITY long long llrint(float __lcpp_x) _NOEXCEPT {return llrintf(__lcpp_x);}
1353 inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __lcpp_x) _NOEXCEPT {return llrintl(__lcpp_x);}
1355 template <class _A1>
1356 inline _LIBCPP_INLINE_VISIBILITY
1357 typename enable_if<is_integral<_A1>::value, long long>::type
1358 llrint(_A1 __lcpp_x) _NOEXCEPT {return llrint((double)__lcpp_x);}
1365 inline _LIBCPP_INLINE_VISIBILITY long long llround(float __lcpp_x) _NOEXCEPT {return llroundf(__lcpp_x);}
1366 inline _LIBCPP_INLINE_VISIBILITY long long llround(long double __lcpp_x) _NOEXCEPT {return llroundl(__lcpp_x);}
1368 template <class _A1>
1369 inline _LIBCPP_INLINE_VISIBILITY
1370 typename enable_if<is_integral<_A1>::value, long long>::type
1371 llround(_A1 __lcpp_x) _NOEXCEPT {return llround((double)__lcpp_x);}
1378 inline _LIBCPP_INLINE_VISIBILITY float log1p(float __lcpp_x) _NOEXCEPT {return log1pf(__lcpp_x);}
1379 inline _LIBCPP_INLINE_VISIBILITY long double log1p(long double __lcpp_x) _NOEXCEPT {return log1pl(__lcpp_x);}
1381 template <class _A1>
1382 inline _LIBCPP_INLINE_VISIBILITY
1383 typename enable_if<is_integral<_A1>::value, double>::type
1384 log1p(_A1 __lcpp_x) _NOEXCEPT {return log1p((double)__lcpp_x);}
1391 inline _LIBCPP_INLINE_VISIBILITY float log2(float __lcpp_x) _NOEXCEPT {return log2f(__lcpp_x);}
1392 inline _LIBCPP_INLINE_VISIBILITY long double log2(long double __lcpp_x) _NOEXCEPT {return log2l(__lcpp_x);}
1394 template <class _A1>
1395 inline _LIBCPP_INLINE_VISIBILITY
1396 typename enable_if<is_integral<_A1>::value, double>::type
1397 log2(_A1 __lcpp_x) _NOEXCEPT {return log2((double)__lcpp_x);}
1404 inline _LIBCPP_INLINE_VISIBILITY float logb(float __lcpp_x) _NOEXCEPT {return logbf(__lcpp_x);}
1405 inline _LIBCPP_INLINE_VISIBILITY long double logb(long double __lcpp_x) _NOEXCEPT {return logbl(__lcpp_x);}
1407 template <class _A1>
1408 inline _LIBCPP_INLINE_VISIBILITY
1409 typename enable_if<is_integral<_A1>::value, double>::type
1410 logb(_A1 __lcpp_x) _NOEXCEPT {return logb((double)__lcpp_x);}
1417 inline _LIBCPP_INLINE_VISIBILITY long lrint(float __lcpp_x) _NOEXCEPT {return lrintf(__lcpp_x);}
1418 inline _LIBCPP_INLINE_VISIBILITY long lrint(long double __lcpp_x) _NOEXCEPT {return lrintl(__lcpp_x);}
1420 template <class _A1>
1421 inline _LIBCPP_INLINE_VISIBILITY
1422 typename enable_if<is_integral<_A1>::value, long>::type
1423 lrint(_A1 __lcpp_x) _NOEXCEPT {return lrint((double)__lcpp_x);}
1430 inline _LIBCPP_INLINE_VISIBILITY long lround(float __lcpp_x) _NOEXCEPT {return lroundf(__lcpp_x);}
1431 inline _LIBCPP_INLINE_VISIBILITY long lround(long double __lcpp_x) _NOEXCEPT {return lroundl(__lcpp_x);}
1433 template <class _A1>
1434 inline _LIBCPP_INLINE_VISIBILITY
1435 typename enable_if<is_integral<_A1>::value, long>::type
1436 lround(_A1 __lcpp_x) _NOEXCEPT {return lround((double)__lcpp_x);}
1438 #endif // _LIBCPP_MSVCRT
1443 #ifndef _LIBCPP_MSVCRT
1446 #endif // _LIBCPP_MSVCRT
1449 #ifndef _LIBCPP_MSVCRT
1456 inline _LIBCPP_INLINE_VISIBILITY float nearbyint(float __lcpp_x) _NOEXCEPT {return nearbyintf(__lcpp_x);}
1457 inline _LIBCPP_INLINE_VISIBILITY long double nearbyint(long double __lcpp_x) _NOEXCEPT {return nearbyintl(__lcpp_x);}
1459 template <class _A1>
1460 inline _LIBCPP_INLINE_VISIBILITY
1461 typename enable_if<is_integral<_A1>::value, double>::type
1462 nearbyint(_A1 __lcpp_x) _NOEXCEPT {return nearbyint((double)__lcpp_x);}
1469 inline _LIBCPP_INLINE_VISIBILITY float nextafter(float __lcpp_x, float __lcpp_y) _NOEXCEPT {return nextafterf(__lcpp_x, __lcpp_y);}
1470 inline _LIBCPP_INLINE_VISIBILITY long double nextafter(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return nextafterl(__lcpp_x, __lcpp_y);}
1472 template <class _A1, class _A2>
1473 inline _LIBCPP_INLINE_VISIBILITY
1474 typename __lazy_enable_if
1476 is_arithmetic<_A1>::value &&
1477 is_arithmetic<_A2>::value,
1480 nextafter(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
1482 typedef typename __promote<_A1, _A2>::type __result_type;
1483 static_assert((!(is_same<_A1, __result_type>::value &&
1484 is_same<_A2, __result_type>::value)), "");
1485 return nextafter((__result_type)__lcpp_x, (__result_type)__lcpp_y);
1491 using ::nexttowardf;
1493 inline _LIBCPP_INLINE_VISIBILITY float nexttoward(float __lcpp_x, long double __lcpp_y) _NOEXCEPT {return nexttowardf(__lcpp_x, __lcpp_y);}
1494 inline _LIBCPP_INLINE_VISIBILITY long double nexttoward(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return nexttowardl(__lcpp_x, __lcpp_y);}
1496 template <class _A1>
1497 inline _LIBCPP_INLINE_VISIBILITY
1498 typename enable_if<is_integral<_A1>::value, double>::type
1499 nexttoward(_A1 __lcpp_x, long double __lcpp_y) _NOEXCEPT {return nexttoward((double)__lcpp_x, __lcpp_y);}
1506 inline _LIBCPP_INLINE_VISIBILITY float remainder(float __lcpp_x, float __lcpp_y) _NOEXCEPT {return remainderf(__lcpp_x, __lcpp_y);}
1507 inline _LIBCPP_INLINE_VISIBILITY long double remainder(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return remainderl(__lcpp_x, __lcpp_y);}
1509 template <class _A1, class _A2>
1510 inline _LIBCPP_INLINE_VISIBILITY
1511 typename __lazy_enable_if
1513 is_arithmetic<_A1>::value &&
1514 is_arithmetic<_A2>::value,
1517 remainder(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT
1519 typedef typename __promote<_A1, _A2>::type __result_type;
1520 static_assert((!(is_same<_A1, __result_type>::value &&
1521 is_same<_A2, __result_type>::value)), "");
1522 return remainder((__result_type)__lcpp_x, (__result_type)__lcpp_y);
1530 inline _LIBCPP_INLINE_VISIBILITY float remquo(float __lcpp_x, float __lcpp_y, int* __lcpp_z) _NOEXCEPT {return remquof(__lcpp_x, __lcpp_y, __lcpp_z);}
1531 inline _LIBCPP_INLINE_VISIBILITY long double remquo(long double __lcpp_x, long double __lcpp_y, int* __lcpp_z) _NOEXCEPT {return remquol(__lcpp_x, __lcpp_y, __lcpp_z);}
1533 template <class _A1, class _A2>
1534 inline _LIBCPP_INLINE_VISIBILITY
1535 typename __lazy_enable_if
1537 is_arithmetic<_A1>::value &&
1538 is_arithmetic<_A2>::value,
1541 remquo(_A1 __lcpp_x, _A2 __lcpp_y, int* __lcpp_z) _NOEXCEPT
1543 typedef typename __promote<_A1, _A2>::type __result_type;
1544 static_assert((!(is_same<_A1, __result_type>::value &&
1545 is_same<_A2, __result_type>::value)), "");
1546 return remquo((__result_type)__lcpp_x, (__result_type)__lcpp_y, __lcpp_z);
1554 inline _LIBCPP_INLINE_VISIBILITY float rint(float __lcpp_x) _NOEXCEPT {return rintf(__lcpp_x);}
1555 inline _LIBCPP_INLINE_VISIBILITY long double rint(long double __lcpp_x) _NOEXCEPT {return rintl(__lcpp_x);}
1557 template <class _A1>
1558 inline _LIBCPP_INLINE_VISIBILITY
1559 typename enable_if<is_integral<_A1>::value, double>::type
1560 rint(_A1 __lcpp_x) _NOEXCEPT {return rint((double)__lcpp_x);}
1567 inline _LIBCPP_INLINE_VISIBILITY float round(float __lcpp_x) _NOEXCEPT {return roundf(__lcpp_x);}
1568 inline _LIBCPP_INLINE_VISIBILITY long double round(long double __lcpp_x) _NOEXCEPT {return roundl(__lcpp_x);}
1570 template <class _A1>
1571 inline _LIBCPP_INLINE_VISIBILITY
1572 typename enable_if<is_integral<_A1>::value, double>::type
1573 round(_A1 __lcpp_x) _NOEXCEPT {return round((double)__lcpp_x);}
1580 inline _LIBCPP_INLINE_VISIBILITY float scalbln(float __lcpp_x, long __lcpp_y) _NOEXCEPT {return scalblnf(__lcpp_x, __lcpp_y);}
1581 inline _LIBCPP_INLINE_VISIBILITY long double scalbln(long double __lcpp_x, long __lcpp_y) _NOEXCEPT {return scalblnl(__lcpp_x, __lcpp_y);}
1583 template <class _A1>
1584 inline _LIBCPP_INLINE_VISIBILITY
1585 typename enable_if<is_integral<_A1>::value, double>::type
1586 scalbln(_A1 __lcpp_x, long __lcpp_y) _NOEXCEPT {return scalbln((double)__lcpp_x, __lcpp_y);}
1593 inline _LIBCPP_INLINE_VISIBILITY float scalbn(float __lcpp_x, int __lcpp_y) _NOEXCEPT {return scalbnf(__lcpp_x, __lcpp_y);}
1594 inline _LIBCPP_INLINE_VISIBILITY long double scalbn(long double __lcpp_x, int __lcpp_y) _NOEXCEPT {return scalbnl(__lcpp_x, __lcpp_y);}
1596 template <class _A1>
1597 inline _LIBCPP_INLINE_VISIBILITY
1598 typename enable_if<is_integral<_A1>::value, double>::type
1599 scalbn(_A1 __lcpp_x, int __lcpp_y) _NOEXCEPT {return scalbn((double)__lcpp_x, __lcpp_y);}
1606 inline _LIBCPP_INLINE_VISIBILITY float tgamma(float __lcpp_x) _NOEXCEPT {return tgammaf(__lcpp_x);}
1607 inline _LIBCPP_INLINE_VISIBILITY long double tgamma(long double __lcpp_x) _NOEXCEPT {return tgammal(__lcpp_x);}
1609 template <class _A1>
1610 inline _LIBCPP_INLINE_VISIBILITY
1611 typename enable_if<is_integral<_A1>::value, double>::type
1612 tgamma(_A1 __lcpp_x) _NOEXCEPT {return tgamma((double)__lcpp_x);}
1619 inline _LIBCPP_INLINE_VISIBILITY float trunc(float __lcpp_x) _NOEXCEPT {return truncf(__lcpp_x);}
1620 inline _LIBCPP_INLINE_VISIBILITY long double trunc(long double __lcpp_x) _NOEXCEPT {return truncl(__lcpp_x);}
1622 template <class _A1>
1623 inline _LIBCPP_INLINE_VISIBILITY
1624 typename enable_if<is_integral<_A1>::value, double>::type
1625 trunc(_A1 __lcpp_x) _NOEXCEPT {return trunc((double)__lcpp_x);}
1627 #endif // !_LIBCPP_MSVCRT
1650 #ifndef _LIBCPP_MSVCRT
1656 #endif // !_LIBCPP_MSVCRT
1658 #ifndef _LIBCPP_MSVCRT
1680 using ::nexttowardl;
1689 #endif // !_LIBCPP_MSVCRT
1695 _LIBCPP_END_NAMESPACE_STD
1697 #endif // _LIBCPP_CMATH