# HG changeset patch
# Parent 8df761378654bc962daa86f44aa2e4cf40804a7d
Don't define libstdc++-internal macros in Solaris 11/12 <math.h>
@@ -3787,6 +3787,23 @@ fix = {
};
/*
+ * Some versions of Solaris 10+ <math.h> #undef libstdc++-internal macros.
+ */
+fix = {
+ hackname = solaris_math_12;
+ files = math.h;
+ mach = '*-*-solaris2*';
+ select = '#undef.*_GLIBCXX_USE_C99_MATH';
+ sed = "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d";
+ test_text = << _EOText_
+#if __cplusplus >= 201103L
+#undef _GLIBCXX_USE_C99_MATH
+#undef _GLIBCXX_USE_C99_MATH_TR1
+#endif
+_EOText_;
+};
+
+/*
* Sun Solaris defines PTHREAD_ONCE_INIT as an array containing a
* structure. As such, it need two levels of brackets, but only
* contains one. Wrap the macro definition in an extra layer.
@@ -85,6 +85,12 @@ extern int class();
#endif /* RS6000_DOUBLE_CHECK */
+#if defined( SOLARIS_MATH_12_CHECK )
+#if __cplusplus >= 201103L
+#endif
+#endif /* SOLARIS_MATH_12_CHECK */
+
+
#if defined( STRICT_ANSI_NOT_CTD_CHECK )
#if 1 && \
&& defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \
@@ -2181,7 +2181,8 @@ AC_DEFUN([GLIBCXX_CHECK_STDIO_PROTO], [
])
dnl
-dnl Check whether required C++11 overloads are present in <math.h>.
+dnl Check whether required C++11 overloads and templates are present
+dnl in <math.h>.
dnl
AC_DEFUN([GLIBCXX_CHECK_MATH11_PROTO], [
@@ -2192,8 +2193,8 @@ AC_DEFUN([GLIBCXX_CHECK_MATH11_PROTO], [
case "$host" in
*-*-solaris2.*)
- # Solaris 12 introduced the C++11 <math.h> overloads. A backport to
- # a Solaris 11.3 SRU is likely, maybe even a Solaris 10 patch.
+ # Solaris 12 Build 86, Solaris 11.3 SRU 3.6, and Solaris 10 Patch
+ # 11996[67]-02 introduced the C++11 <math.h> overloads.
AC_MSG_CHECKING([for C++11 <math.h> overloads])
AC_CACHE_VAL(glibcxx_cv_math11_overload, [
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
@@ -2209,16 +2210,76 @@ AC_DEFUN([GLIBCXX_CHECK_MATH11_PROTO], [
)])
# autoheader cannot handle indented templates.
- AH_VERBATIM([__CORRECT_ISO_CPP11_MATH_H_PROTO],
+ AH_VERBATIM([__CORRECT_ISO_CPP11_MATH_H_PROTO1],
[/* Define if all C++11 overloads are available in <math.h>. */
#if __cplusplus >= 201103L
-#undef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#undef __CORRECT_ISO_CPP11_MATH_H_PROTO1
#endif])
if test $glibcxx_cv_math11_overload = yes; then
- AC_DEFINE(__CORRECT_ISO_CPP11_MATH_H_PROTO)
+ AC_DEFINE(__CORRECT_ISO_CPP11_MATH_H_PROTO1)
fi
AC_MSG_RESULT([$glibcxx_cv_math11_overload])
+
+ # Solaris 12 Build 90, Solaris 11.3 SRU 5.6, and Solaris 10 Patch
+ # 11996[67]-02 introduced the C++11 <math.h> templates.
+ AC_MSG_CHECKING([for C++11 <math.h> templates])
+ AC_CACHE_VAL(glibcxx_cv_math11_template, [
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE(
+ [#include <math.h>
+ namespace std {
+ struct __true_type { };
+ struct __false_type { };
+ template<typename _Tp>
+ struct __is_integer
+ {
+ enum { __value = 0 };
+ typedef __false_type __type;
+ };
+ template<>
+ struct __is_integer<int>
+ {
+ enum { __value = 1 };
+ typedef __true_type __type;
+ };
+ }
+ namespace __gnu_cxx {
+ template<bool, typename>
+ struct __enable_if
+ { };
+ template<typename _Tp>
+ struct __enable_if<true, _Tp>
+ { typedef _Tp __type; };
+ }
+ namespace std {
+ template<typename _Tp>
+ constexpr typename __gnu_cxx::__enable_if
+ <__is_integer<_Tp>::__value, double>::__type
+ log2(_Tp __x)
+ { return __builtin_log2(__x); }
+ }
+ int
+ main (void)
+ {
+ int i = 1000;
+ return std::log2(i);
+ }
+ ])],
+ [glibcxx_cv_math11_template=no],
+ [glibcxx_cv_math11_template=yes]
+ )])
+
+ # autoheader cannot handle indented templates.
+ AH_VERBATIM([__CORRECT_ISO_CPP11_MATH_H_PROTO2],
+ [/* Define if all C++11 templates are available in <math.h>. */
+#if __cplusplus >= 201103L
+#undef __CORRECT_ISO_CPP11_MATH_H_PROTO2
+#endif])
+
+ if test $glibcxx_cv_math11_template = yes; then
+ AC_DEFINE(__CORRECT_ISO_CPP11_MATH_H_PROTO2)
+ fi
+ AC_MSG_RESULT([$glibcxx_cv_math11_template])
;;
*)
# If <math.h> defines the obsolete isinf(double) and isnan(double)
@@ -539,7 +539,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
#if __cplusplus >= 201103L
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr int
fpclassify(float __x)
{ return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
@@ -556,13 +556,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
FP_SUBNORMAL, FP_ZERO, __x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
int>::__type
fpclassify(_Tp __x)
{ return __x != 0 ? FP_NORMAL : FP_ZERO; }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
isfinite(float __x)
{ return __builtin_isfinite(__x); }
@@ -576,13 +578,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_isfinite(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
bool>::__type
isfinite(_Tp __x)
{ return true; }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
isinf(float __x)
{ return __builtin_isinf(__x); }
@@ -601,13 +605,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_isinf(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
bool>::__type
isinf(_Tp __x)
{ return false; }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
isnan(float __x)
{ return __builtin_isnan(__x); }
@@ -626,13 +632,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_isnan(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
bool>::__type
isnan(_Tp __x)
{ return false; }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
isnormal(float __x)
{ return __builtin_isnormal(__x); }
@@ -646,13 +654,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_isnormal(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
bool>::__type
isnormal(_Tp __x)
{ return __x != 0 ? true : false; }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
// Note: middle-end/36757 is fixed, __builtin_signbit is type-generic.
constexpr bool
signbit(float __x)
@@ -667,13 +677,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_signbit(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
bool>::__type
signbit(_Tp __x)
{ return __x < 0 ? true : false; }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
isgreater(float __x, float __y)
{ return __builtin_isgreater(__x, __y); }
@@ -687,6 +699,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_isgreater(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value
@@ -696,8 +709,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return __builtin_isgreater(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
isgreaterequal(float __x, float __y)
{ return __builtin_isgreaterequal(__x, __y); }
@@ -711,6 +725,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_isgreaterequal(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value
@@ -720,8 +735,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return __builtin_isgreaterequal(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
isless(float __x, float __y)
{ return __builtin_isless(__x, __y); }
@@ -735,6 +751,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_isless(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value
@@ -744,8 +761,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return __builtin_isless(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
islessequal(float __x, float __y)
{ return __builtin_islessequal(__x, __y); }
@@ -759,6 +777,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_islessequal(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value
@@ -768,8 +787,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return __builtin_islessequal(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
islessgreater(float __x, float __y)
{ return __builtin_islessgreater(__x, __y); }
@@ -783,6 +803,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_islessgreater(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value
@@ -792,8 +813,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return __builtin_islessgreater(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr bool
isunordered(float __x, float __y)
{ return __builtin_isunordered(__x, __y); }
@@ -807,6 +829,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_isunordered(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value
@@ -816,6 +839,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return __builtin_isunordered(__type(__x), __type(__y));
}
+#endif
#else
@@ -1196,7 +1220,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
using ::truncl;
/// Additional overloads.
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
acosh(float __x)
{ return __builtin_acoshf(__x); }
@@ -1206,13 +1230,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_acoshl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
acosh(_Tp __x)
{ return __builtin_acosh(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
asinh(float __x)
{ return __builtin_asinhf(__x); }
@@ -1222,13 +1248,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_asinhl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
asinh(_Tp __x)
{ return __builtin_asinh(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
atanh(float __x)
{ return __builtin_atanhf(__x); }
@@ -1238,13 +1266,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_atanhl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
atanh(_Tp __x)
{ return __builtin_atanh(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
cbrt(float __x)
{ return __builtin_cbrtf(__x); }
@@ -1254,13 +1284,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_cbrtl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
cbrt(_Tp __x)
{ return __builtin_cbrt(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
copysign(float __x, float __y)
{ return __builtin_copysignf(__x, __y); }
@@ -1270,6 +1302,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_copysignl(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
copysign(_Tp __x, _Up __y)
@@ -1277,8 +1310,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return copysign(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
erf(float __x)
{ return __builtin_erff(__x); }
@@ -1288,13 +1322,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_erfl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
erf(_Tp __x)
{ return __builtin_erf(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
erfc(float __x)
{ return __builtin_erfcf(__x); }
@@ -1304,13 +1340,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_erfcl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
erfc(_Tp __x)
{ return __builtin_erfc(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
exp2(float __x)
{ return __builtin_exp2f(__x); }
@@ -1320,13 +1358,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_exp2l(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
exp2(_Tp __x)
{ return __builtin_exp2(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
expm1(float __x)
{ return __builtin_expm1f(__x); }
@@ -1336,13 +1376,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_expm1l(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
expm1(_Tp __x)
{ return __builtin_expm1(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
fdim(float __x, float __y)
{ return __builtin_fdimf(__x, __y); }
@@ -1352,6 +1394,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_fdiml(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
fdim(_Tp __x, _Up __y)
@@ -1359,8 +1402,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return fdim(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
fma(float __x, float __y, float __z)
{ return __builtin_fmaf(__x, __y, __z); }
@@ -1370,6 +1414,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_fmal(__x, __y, __z); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up, typename _Vp>
constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type
fma(_Tp __x, _Up __y, _Vp __z)
@@ -1377,8 +1422,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type;
return fma(__type(__x), __type(__y), __type(__z));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
fmax(float __x, float __y)
{ return __builtin_fmaxf(__x, __y); }
@@ -1388,6 +1434,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_fmaxl(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
fmax(_Tp __x, _Up __y)
@@ -1395,8 +1442,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return fmax(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
fmin(float __x, float __y)
{ return __builtin_fminf(__x, __y); }
@@ -1406,6 +1454,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_fminl(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
fmin(_Tp __x, _Up __y)
@@ -1413,8 +1462,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return fmin(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
hypot(float __x, float __y)
{ return __builtin_hypotf(__x, __y); }
@@ -1424,6 +1474,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_hypotl(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
hypot(_Tp __x, _Up __y)
@@ -1431,8 +1482,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return hypot(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr int
ilogb(float __x)
{ return __builtin_ilogbf(__x); }
@@ -1442,14 +1494,16 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_ilogbl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
int>::__type
ilogb(_Tp __x)
{ return __builtin_ilogb(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
lgamma(float __x)
{ return __builtin_lgammaf(__x); }
@@ -1459,13 +1513,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_lgammal(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
lgamma(_Tp __x)
{ return __builtin_lgamma(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr long long
llrint(float __x)
{ return __builtin_llrintf(__x); }
@@ -1475,13 +1531,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_llrintl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
long long>::__type
llrint(_Tp __x)
{ return __builtin_llrint(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr long long
llround(float __x)
{ return __builtin_llroundf(__x); }
@@ -1491,13 +1549,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_llroundl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
long long>::__type
llround(_Tp __x)
{ return __builtin_llround(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
log1p(float __x)
{ return __builtin_log1pf(__x); }
@@ -1507,13 +1567,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_log1pl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
log1p(_Tp __x)
{ return __builtin_log1p(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
// DR 568.
constexpr float
log2(float __x)
@@ -1524,13 +1586,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_log2l(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
log2(_Tp __x)
{ return __builtin_log2(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
logb(float __x)
{ return __builtin_logbf(__x); }
@@ -1540,13 +1604,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_logbl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
logb(_Tp __x)
{ return __builtin_logb(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr long
lrint(float __x)
{ return __builtin_lrintf(__x); }
@@ -1556,13 +1622,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_lrintl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
long>::__type
lrint(_Tp __x)
{ return __builtin_lrint(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr long
lround(float __x)
{ return __builtin_lroundf(__x); }
@@ -1572,13 +1640,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_lroundl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
long>::__type
lround(_Tp __x)
{ return __builtin_lround(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
nearbyint(float __x)
{ return __builtin_nearbyintf(__x); }
@@ -1588,13 +1658,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_nearbyintl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
nearbyint(_Tp __x)
{ return __builtin_nearbyint(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
nextafter(float __x, float __y)
{ return __builtin_nextafterf(__x, __y); }
@@ -1604,6 +1676,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_nextafterl(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
nextafter(_Tp __x, _Up __y)
@@ -1611,8 +1684,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return nextafter(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
nexttoward(float __x, long double __y)
{ return __builtin_nexttowardf(__x, __y); }
@@ -1622,13 +1696,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_nexttowardl(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
nexttoward(_Tp __x, long double __y)
{ return __builtin_nexttoward(__x, __y); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
remainder(float __x, float __y)
{ return __builtin_remainderf(__x, __y); }
@@ -1638,6 +1714,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_remainderl(__x, __y); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
remainder(_Tp __x, _Up __y)
@@ -1645,8 +1722,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return remainder(__type(__x), __type(__y));
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
remquo(float __x, float __y, int* __pquo)
{ return __builtin_remquof(__x, __y, __pquo); }
@@ -1656,6 +1734,7 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_remquol(__x, __y, __pquo); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp, typename _Up>
inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
remquo(_Tp __x, _Up __y, int* __pquo)
@@ -1663,8 +1742,9 @@ namespace std _GLIBCXX_VISIBILITY(defaul
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
return remquo(__type(__x), __type(__y), __pquo);
}
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
rint(float __x)
{ return __builtin_rintf(__x); }
@@ -1674,13 +1754,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_rintl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
rint(_Tp __x)
{ return __builtin_rint(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
round(float __x)
{ return __builtin_roundf(__x); }
@@ -1690,13 +1772,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_roundl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
round(_Tp __x)
{ return __builtin_round(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
scalbln(float __x, long __ex)
{ return __builtin_scalblnf(__x, __ex); }
@@ -1706,13 +1790,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_scalblnl(__x, __ex); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
scalbln(_Tp __x, long __ex)
{ return __builtin_scalbln(__x, __ex); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
scalbn(float __x, int __ex)
{ return __builtin_scalbnf(__x, __ex); }
@@ -1722,13 +1808,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_scalbnl(__x, __ex); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
scalbn(_Tp __x, int __ex)
{ return __builtin_scalbn(__x, __ex); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
tgamma(float __x)
{ return __builtin_tgammaf(__x); }
@@ -1738,13 +1826,15 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_tgammal(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
tgamma(_Tp __x)
{ return __builtin_tgamma(__x); }
+#endif
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
constexpr float
trunc(float __x)
{ return __builtin_truncf(__x); }
@@ -1754,11 +1844,13 @@ namespace std _GLIBCXX_VISIBILITY(defaul
{ return __builtin_truncl(__x); }
#endif
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO2
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
double>::__type
trunc(_Tp __x)
{ return __builtin_trunc(__x); }
+#endif
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace
@@ -490,7 +490,7 @@ namespace tr1
// In C++03 we need to provide the additional overloads.
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
acosh(float __x)
{ return __builtin_acoshf(__x); }
@@ -506,7 +506,7 @@ namespace tr1
acosh(_Tp __x)
{ return __builtin_acosh(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
asinh(float __x)
{ return __builtin_asinhf(__x); }
@@ -522,7 +522,7 @@ namespace tr1
asinh(_Tp __x)
{ return __builtin_asinh(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
atanh(float __x)
{ return __builtin_atanhf(__x); }
@@ -538,7 +538,7 @@ namespace tr1
atanh(_Tp __x)
{ return __builtin_atanh(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
cbrt(float __x)
{ return __builtin_cbrtf(__x); }
@@ -554,7 +554,7 @@ namespace tr1
cbrt(_Tp __x)
{ return __builtin_cbrt(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
copysign(float __x, float __y)
{ return __builtin_copysignf(__x, __y); }
@@ -572,7 +572,7 @@ namespace tr1
return copysign(__type(__x), __type(__y));
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
erf(float __x)
{ return __builtin_erff(__x); }
@@ -588,7 +588,7 @@ namespace tr1
erf(_Tp __x)
{ return __builtin_erf(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
erfc(float __x)
{ return __builtin_erfcf(__x); }
@@ -604,7 +604,7 @@ namespace tr1
erfc(_Tp __x)
{ return __builtin_erfc(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
exp2(float __x)
{ return __builtin_exp2f(__x); }
@@ -620,7 +620,7 @@ namespace tr1
exp2(_Tp __x)
{ return __builtin_exp2(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
expm1(float __x)
{ return __builtin_expm1f(__x); }
@@ -636,7 +636,7 @@ namespace tr1
expm1(_Tp __x)
{ return __builtin_expm1(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
fdim(float __x, float __y)
{ return __builtin_fdimf(__x, __y); }
@@ -654,7 +654,7 @@ namespace tr1
return fdim(__type(__x), __type(__y));
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
fma(float __x, float __y, float __z)
{ return __builtin_fmaf(__x, __y, __z); }
@@ -672,7 +672,7 @@ namespace tr1
return fma(__type(__x), __type(__y), __type(__z));
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
fmax(float __x, float __y)
{ return __builtin_fmaxf(__x, __y); }
@@ -690,7 +690,7 @@ namespace tr1
return fmax(__type(__x), __type(__y));
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
fmin(float __x, float __y)
{ return __builtin_fminf(__x, __y); }
@@ -708,7 +708,7 @@ namespace tr1
return fmin(__type(__x), __type(__y));
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
hypot(float __x, float __y)
{ return __builtin_hypotf(__x, __y); }
@@ -726,7 +726,7 @@ namespace tr1
return hypot(__type(__y), __type(__x));
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline int
ilogb(float __x)
{ return __builtin_ilogbf(__x); }
@@ -742,7 +742,7 @@ namespace tr1
ilogb(_Tp __x)
{ return __builtin_ilogb(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
lgamma(float __x)
{ return __builtin_lgammaf(__x); }
@@ -758,7 +758,7 @@ namespace tr1
lgamma(_Tp __x)
{ return __builtin_lgamma(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline long long
llrint(float __x)
{ return __builtin_llrintf(__x); }
@@ -774,7 +774,7 @@ namespace tr1
llrint(_Tp __x)
{ return __builtin_llrint(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline long long
llround(float __x)
{ return __builtin_llroundf(__x); }
@@ -790,7 +790,7 @@ namespace tr1
llround(_Tp __x)
{ return __builtin_llround(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
log1p(float __x)
{ return __builtin_log1pf(__x); }
@@ -807,7 +807,7 @@ namespace tr1
{ return __builtin_log1p(__x); }
// DR 568.
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
log2(float __x)
{ return __builtin_log2f(__x); }
@@ -823,7 +823,7 @@ namespace tr1
log2(_Tp __x)
{ return __builtin_log2(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
logb(float __x)
{ return __builtin_logbf(__x); }
@@ -841,7 +841,7 @@ namespace tr1
return __builtin_logb(__x);
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline long
lrint(float __x)
{ return __builtin_lrintf(__x); }
@@ -857,7 +857,7 @@ namespace tr1
lrint(_Tp __x)
{ return __builtin_lrint(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline long
lround(float __x)
{ return __builtin_lroundf(__x); }
@@ -873,7 +873,7 @@ namespace tr1
lround(_Tp __x)
{ return __builtin_lround(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
nearbyint(float __x)
{ return __builtin_nearbyintf(__x); }
@@ -889,7 +889,7 @@ namespace tr1
nearbyint(_Tp __x)
{ return __builtin_nearbyint(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
nextafter(float __x, float __y)
{ return __builtin_nextafterf(__x, __y); }
@@ -907,7 +907,7 @@ namespace tr1
return nextafter(__type(__x), __type(__y));
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
nexttoward(float __x, long double __y)
{ return __builtin_nexttowardf(__x, __y); }
@@ -923,7 +923,7 @@ namespace tr1
nexttoward(_Tp __x, long double __y)
{ return __builtin_nexttoward(__x, __y); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
remainder(float __x, float __y)
{ return __builtin_remainderf(__x, __y); }
@@ -941,7 +941,7 @@ namespace tr1
return remainder(__type(__x), __type(__y));
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
remquo(float __x, float __y, int* __pquo)
{ return __builtin_remquof(__x, __y, __pquo); }
@@ -959,7 +959,7 @@ namespace tr1
return remquo(__type(__x), __type(__y), __pquo);
}
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
rint(float __x)
{ return __builtin_rintf(__x); }
@@ -975,7 +975,7 @@ namespace tr1
rint(_Tp __x)
{ return __builtin_rint(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
round(float __x)
{ return __builtin_roundf(__x); }
@@ -991,7 +991,7 @@ namespace tr1
round(_Tp __x)
{ return __builtin_round(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
scalbln(float __x, long __ex)
{ return __builtin_scalblnf(__x, __ex); }
@@ -1007,7 +1007,7 @@ namespace tr1
scalbln(_Tp __x, long __ex)
{ return __builtin_scalbln(__x, __ex); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
scalbn(float __x, int __ex)
{ return __builtin_scalbnf(__x, __ex); }
@@ -1023,7 +1023,7 @@ namespace tr1
scalbn(_Tp __x, int __ex)
{ return __builtin_scalbn(__x, __ex); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
tgamma(float __x)
{ return __builtin_tgammaf(__x); }
@@ -1039,7 +1039,7 @@ namespace tr1
tgamma(_Tp __x)
{ return __builtin_tgamma(__x); }
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
trunc(float __x)
{ return __builtin_truncf(__x); }
@@ -1084,7 +1084,7 @@ namespace tr1
// the discussion about this issue here:
// http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01278.html
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
pow(float __x, float __y)
{ return std::pow(__x, __y); }
@@ -1112,7 +1112,7 @@ namespace tr1
// to std::fabs.
#ifndef __CORRECT_ISO_CPP_MATH_H_PROTO
-#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO
+#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO1
inline float
fabs(float __x)
{ return __builtin_fabsf(__x); }