diff --git a/libcxx/include/math.h b/libcxx/include/math.h --- a/libcxx/include/math.h +++ b/libcxx/include/math.h @@ -539,7 +539,6 @@ // acos -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float acos(float __x) _NOEXCEPT {return __builtin_acosf(__x);} template @@ -548,7 +547,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double acos(long double __x) _NOEXCEPT {return __builtin_acosl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -557,7 +555,6 @@ // asin -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float asin(float __x) _NOEXCEPT {return __builtin_asinf(__x);} template @@ -566,7 +563,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double asin(long double __x) _NOEXCEPT {return __builtin_asinl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -575,7 +571,6 @@ // atan -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float atan(float __x) _NOEXCEPT {return __builtin_atanf(__x);} template @@ -584,7 +579,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double atan(long double __x) _NOEXCEPT {return __builtin_atanl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -593,7 +587,6 @@ // atan2 -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float atan2(float __y, float __x) _NOEXCEPT {return __builtin_atan2f(__y, __x);} template @@ -602,7 +595,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double atan2(long double __y, long double __x) _NOEXCEPT {return __builtin_atan2l(__y, __x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -622,7 +614,6 @@ // ceil -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float ceil(float __x) _NOEXCEPT {return __builtin_ceilf(__x);} template @@ -631,7 +622,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double ceil(long double __x) _NOEXCEPT {return __builtin_ceill(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -640,7 +630,6 @@ // cos -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float cos(float __x) _NOEXCEPT {return __builtin_cosf(__x);} template @@ -649,7 +638,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double cos(long double __x) _NOEXCEPT {return __builtin_cosl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -658,7 +646,6 @@ // cosh -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float cosh(float __x) _NOEXCEPT {return __builtin_coshf(__x);} template @@ -667,7 +654,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double cosh(long double __x) _NOEXCEPT {return __builtin_coshl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -676,7 +662,6 @@ // exp -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float exp(float __x) _NOEXCEPT {return __builtin_expf(__x);} template @@ -685,7 +670,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double exp(long double __x) _NOEXCEPT {return __builtin_expl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -694,7 +678,6 @@ // fabs -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float fabs(float __x) _NOEXCEPT {return __builtin_fabsf(__x);} template @@ -703,7 +686,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double fabs(long double __x) _NOEXCEPT {return __builtin_fabsl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -712,7 +694,6 @@ // floor -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float floor(float __x) _NOEXCEPT {return __builtin_floorf(__x);} template @@ -721,7 +702,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double floor(long double __x) _NOEXCEPT {return __builtin_floorl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -730,7 +710,6 @@ // fmod -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float fmod(float __x, float __y) _NOEXCEPT {return __builtin_fmodf(__x, __y);} template @@ -739,7 +718,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double fmod(long double __x, long double __y) _NOEXCEPT {return __builtin_fmodl(__x, __y);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -759,7 +737,6 @@ // frexp -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float frexp(float __x, int* __e) _NOEXCEPT {return __builtin_frexpf(__x, __e);} template @@ -768,7 +745,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double frexp(long double __x, int* __e) _NOEXCEPT {return __builtin_frexpl(__x, __e);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -777,7 +753,6 @@ // ldexp -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float ldexp(float __x, int __e) _NOEXCEPT {return __builtin_ldexpf(__x, __e);} template @@ -786,7 +761,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double ldexp(long double __x, int __e) _NOEXCEPT {return __builtin_ldexpl(__x, __e);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -795,7 +769,6 @@ // log -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float log(float __x) _NOEXCEPT {return __builtin_logf(__x);} template @@ -804,7 +777,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double log(long double __x) _NOEXCEPT {return __builtin_logl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -813,7 +785,6 @@ // log10 -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float log10(float __x) _NOEXCEPT {return __builtin_log10f(__x);} @@ -823,7 +794,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double log10(long double __x) _NOEXCEPT {return __builtin_log10l(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -832,7 +802,6 @@ // modf -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float modf(float __x, float* __y) _NOEXCEPT {return __builtin_modff(__x, __y);} template @@ -841,11 +810,9 @@ } inline _LIBCPP_HIDE_FROM_ABI long double modf(long double __x, long double* __y) _NOEXCEPT {return __builtin_modfl(__x, __y);} -# endif // pow -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float pow(float __x, float __y) _NOEXCEPT {return __builtin_powf(__x, __y);} template @@ -854,7 +821,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double pow(long double __x, long double __y) _NOEXCEPT {return __builtin_powl(__x, __y);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -874,7 +840,6 @@ // sin -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float sin(float __x) _NOEXCEPT {return __builtin_sinf(__x);} template @@ -883,7 +848,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double sin(long double __x) _NOEXCEPT {return __builtin_sinl(__x);} -#endif template inline _LIBCPP_HIDE_FROM_ABI @@ -892,7 +856,6 @@ // sinh -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float sinh(float __x) _NOEXCEPT {return __builtin_sinhf(__x);} template @@ -901,7 +864,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double sinh(long double __x) _NOEXCEPT {return __builtin_sinhl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -910,7 +872,6 @@ // sqrt -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float sqrt(float __x) _NOEXCEPT {return __builtin_sqrtf(__x);} template @@ -919,7 +880,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double sqrt(long double __x) _NOEXCEPT {return __builtin_sqrtl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -928,7 +888,6 @@ // tan -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float tan(float __x) _NOEXCEPT {return __builtin_tanf(__x);} template @@ -937,7 +896,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double tan(long double __x) _NOEXCEPT {return __builtin_tanl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI @@ -946,7 +904,6 @@ // tanh -# if !defined(__sun__) inline _LIBCPP_HIDE_FROM_ABI float tanh(float __x) _NOEXCEPT {return __builtin_tanhf(__x);} template @@ -955,7 +912,6 @@ } inline _LIBCPP_HIDE_FROM_ABI long double tanh(long double __x) _NOEXCEPT {return __builtin_tanhl(__x);} -# endif template inline _LIBCPP_HIDE_FROM_ABI