[libcxx-commits] [libcxx] ecef6b1 - [libc++] Remove duplication in math_h.pass.cpp and improve coverage

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 22 11:36:04 PST 2022


Author: Nikolas Klauser
Date: 2022-11-22T20:35:44+01:00
New Revision: ecef6b1cb143c5372d29121aa5932505d5140f6f

URL: https://github.com/llvm/llvm-project/commit/ecef6b1cb143c5372d29121aa5932505d5140f6f
DIFF: https://github.com/llvm/llvm-project/commit/ecef6b1cb143c5372d29121aa5932505d5140f6f.diff

LOG: [libc++] Remove duplication in math_h.pass.cpp and improve coverage

Reviewed By: ldionne, huixie90, #libc

Spies: mstorsjo, EricWF, libcxx-commits

Differential Revision: https://reviews.llvm.org/D136908

Added: 
    

Modified: 
    libcxx/include/__type_traits/promote.h
    libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__type_traits/promote.h b/libcxx/include/__type_traits/promote.h
index a9226a74b300d..e647dff4690cd 100644
--- a/libcxx/include/__type_traits/promote.h
+++ b/libcxx/include/__type_traits/promote.h
@@ -33,6 +33,10 @@ struct __numeric_type
    static double __test(unsigned long);
    static double __test(long long);
    static double __test(unsigned long long);
+#ifndef _LIBCPP_HAS_NO_INT128
+   static double __test(__int128_t);
+   static double __test(__uint128_t);
+#endif
    static double __test(double);
    static long double __test(long double);
 

diff  --git a/libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp
index f017522b0160b..db815f97fd1f4 100644
--- a/libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp
+++ b/libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp
@@ -15,6 +15,7 @@
 #include "test_macros.h"
 #include "hexfloat.h"
 #include "truncate_fp.h"
+#include "type_algorithms.h"
 
 // convertible to int/float/double/etc
 template <class T, int N=0>
@@ -138,17 +139,6 @@ void test_abs()
 
 void test_acos()
 {
-    static_assert((std::is_same<decltype(acos((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(acos((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acos((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(acosf(0)), float>::value), "");
     static_assert((std::is_same<decltype(acosl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(acos(Ambiguous())), Ambiguous>::value), "");
@@ -157,17 +147,6 @@ void test_acos()
 
 void test_asin()
 {
-    static_assert((std::is_same<decltype(asin((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(asin((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asin((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(asinf(0)), float>::value), "");
     static_assert((std::is_same<decltype(asinl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(asin(Ambiguous())), Ambiguous>::value), "");
@@ -176,17 +155,6 @@ void test_asin()
 
 void test_atan()
 {
-    static_assert((std::is_same<decltype(atan((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(atan((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(atanf(0)), float>::value), "");
     static_assert((std::is_same<decltype(atanl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(atan(Ambiguous())), Ambiguous>::value), "");
@@ -195,40 +163,14 @@ void test_atan()
 
 void test_atan2()
 {
-    static_assert((std::is_same<decltype(atan2((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(atan2((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan2((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan2((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(atan2((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan2((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan2((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(atan2((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan2((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan2((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan2((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(atan2((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atan2((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(atan2((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(atan2f(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(atan2l(0,0)), long double>::value), "");
-    static_assert((std::is_same<decltype(atan2((int)0, (int)0)), double>::value), "");
     static_assert((std::is_same<decltype(atan2(Ambiguous(), Ambiguous())), Ambiguous>::value), "");
     assert(atan2(0,1) == 0);
 }
 
 void test_ceil()
 {
-    static_assert((std::is_same<decltype(ceil((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(ceil((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(ceil((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(ceilf(0)), float>::value), "");
     static_assert((std::is_same<decltype(ceill(0)), long double>::value), "");
     static_assert((std::is_same<decltype(ceil(Ambiguous())), Ambiguous>::value), "");
@@ -237,17 +179,6 @@ void test_ceil()
 
 void test_cos()
 {
-    static_assert((std::is_same<decltype(cos((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(cos((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cos((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(cosf(0)), float>::value), "");
     static_assert((std::is_same<decltype(cosl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(cos(Ambiguous())), Ambiguous>::value), "");
@@ -256,17 +187,6 @@ void test_cos()
 
 void test_cosh()
 {
-    static_assert((std::is_same<decltype(cosh((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(cosh((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(cosh((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(coshf(0)), float>::value), "");
     static_assert((std::is_same<decltype(coshl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(cosh(Ambiguous())), Ambiguous>::value), "");
@@ -275,17 +195,6 @@ void test_cosh()
 
 void test_exp()
 {
-    static_assert((std::is_same<decltype(exp((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(exp((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(expf(0)), float>::value), "");
     static_assert((std::is_same<decltype(expl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(exp(Ambiguous())), Ambiguous>::value), "");
@@ -294,17 +203,6 @@ void test_exp()
 
 void test_fabs()
 {
-    static_assert((std::is_same<decltype(fabs((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(fabs((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fabs((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fabsf(0.0f)), float>::value), "");
     static_assert((std::is_same<decltype(fabsl(0.0L)), long double>::value), "");
     static_assert((std::is_same<decltype(fabs(Ambiguous())), Ambiguous>::value), "");
@@ -313,17 +211,6 @@ void test_fabs()
 
 void test_floor()
 {
-    static_assert((std::is_same<decltype(floor((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(floor((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(floor((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(floorf(0)), float>::value), "");
     static_assert((std::is_same<decltype(floorl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(floor(Ambiguous())), Ambiguous>::value), "");
@@ -332,23 +219,8 @@ void test_floor()
 
 void test_fmod()
 {
-    static_assert((std::is_same<decltype(fmod((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(fmod((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmod((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmod((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmod((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmod((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmod((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmod((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmod((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmod((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmod((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmod((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmod((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmod((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fmodf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(fmodl(0,0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmod((int)0, (int)0)), double>::value), "");
     static_assert((std::is_same<decltype(fmod(Ambiguous(), Ambiguous())), Ambiguous>::value), "");
     assert(fmod(1.5,1) == .5);
 }
@@ -356,17 +228,6 @@ void test_fmod()
 void test_frexp()
 {
     int ip;
-    static_assert((std::is_same<decltype(frexp((float)0, &ip)), float>::value), "");
-    static_assert((std::is_same<decltype(frexp((bool)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((unsigned short)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((int)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((unsigned int)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((long)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((unsigned long)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((long long)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((unsigned long long)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((double)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(frexp((long double)0, &ip)), long double>::value), "");
     static_assert((std::is_same<decltype(frexpf(0, &ip)), float>::value), "");
     static_assert((std::is_same<decltype(frexpl(0, &ip)), long double>::value), "");
     static_assert((std::is_same<decltype(frexp(Ambiguous(), &ip)), Ambiguous>::value), "");
@@ -376,17 +237,6 @@ void test_frexp()
 void test_ldexp()
 {
     int ip = 1;
-    static_assert((std::is_same<decltype(ldexp((float)0, ip)), float>::value), "");
-    static_assert((std::is_same<decltype(ldexp((bool)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((unsigned short)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((int)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((unsigned int)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((long)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((unsigned long)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((long long)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((unsigned long long)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((double)0, ip)), double>::value), "");
-    static_assert((std::is_same<decltype(ldexp((long double)0, ip)), long double>::value), "");
     static_assert((std::is_same<decltype(ldexpf(0, ip)), float>::value), "");
     static_assert((std::is_same<decltype(ldexpl(0, ip)), long double>::value), "");
     static_assert((std::is_same<decltype(ldexp(Ambiguous(), ip)), Ambiguous>::value), "");
@@ -395,17 +245,6 @@ void test_ldexp()
 
 void test_log()
 {
-    static_assert((std::is_same<decltype(log((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(log((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(logf(0)), float>::value), "");
     static_assert((std::is_same<decltype(logl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(log(Ambiguous())), Ambiguous>::value), "");
@@ -414,17 +253,6 @@ void test_log()
 
 void test_log10()
 {
-    static_assert((std::is_same<decltype(log10((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(log10((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log10((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(log10f(0)), float>::value), "");
     static_assert((std::is_same<decltype(log10l(0)), long double>::value), "");
     static_assert((std::is_same<decltype(log10(Ambiguous())), Ambiguous>::value), "");
@@ -445,20 +273,6 @@ void test_modf()
 
 void test_pow()
 {
-    static_assert((std::is_same<decltype(pow((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(pow((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(pow((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(pow((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(pow((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(pow((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(pow((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(pow((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(pow((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(pow((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(pow((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(pow((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(pow((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(pow((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(powf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(powl(0,0)), long double>::value), "");
     static_assert((std::is_same<decltype(pow((int)0, (int)0)), double>::value), "");
@@ -475,17 +289,6 @@ void test_pow()
 
 void test_sin()
 {
-    static_assert((std::is_same<decltype(sin((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(sin((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sin((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(sinf(0)), float>::value), "");
     static_assert((std::is_same<decltype(sinl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(sin(Ambiguous())), Ambiguous>::value), "");
@@ -494,17 +297,6 @@ void test_sin()
 
 void test_sinh()
 {
-    static_assert((std::is_same<decltype(sinh((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(sinh((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sinh((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(sinhf(0)), float>::value), "");
     static_assert((std::is_same<decltype(sinhl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(sinh(Ambiguous())), Ambiguous>::value), "");
@@ -513,17 +305,6 @@ void test_sinh()
 
 void test_sqrt()
 {
-    static_assert((std::is_same<decltype(sqrt((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(sqrt((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(sqrt((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(sqrtf(0)), float>::value), "");
     static_assert((std::is_same<decltype(sqrtl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(sqrt(Ambiguous())), Ambiguous>::value), "");
@@ -532,17 +313,6 @@ void test_sqrt()
 
 void test_tan()
 {
-    static_assert((std::is_same<decltype(tan((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(tan((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tan((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(tanf(0)), float>::value), "");
     static_assert((std::is_same<decltype(tanl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(tan(Ambiguous())), Ambiguous>::value), "");
@@ -551,17 +321,6 @@ void test_tan()
 
 void test_tanh()
 {
-    static_assert((std::is_same<decltype(tanh((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(tanh((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tanh((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(tanhf(0)), float>::value), "");
     static_assert((std::is_same<decltype(tanhl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(tanh(Ambiguous())), Ambiguous>::value), "");
@@ -573,10 +332,6 @@ void test_signbit()
 #ifdef signbit
 #error signbit defined
 #endif
-    static_assert((std::is_same<decltype(signbit((float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(signbit((double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(signbit(0)), bool>::value), "");
-    static_assert((std::is_same<decltype(signbit((long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(signbit(Ambiguous())), Ambiguous>::value), "");
     assert(signbit(-1.0) == true);
 }
@@ -586,10 +341,6 @@ void test_fpclassify()
 #ifdef fpclassify
 #error fpclassify defined
 #endif
-    static_assert((std::is_same<decltype(fpclassify((float)0)), int>::value), "");
-    static_assert((std::is_same<decltype(fpclassify((double)0)), int>::value), "");
-    static_assert((std::is_same<decltype(fpclassify(0)), int>::value), "");
-    static_assert((std::is_same<decltype(fpclassify((long double)0)), int>::value), "");
     static_assert((std::is_same<decltype(fpclassify(Ambiguous())), Ambiguous>::value), "");
     assert(fpclassify(-1.0) == FP_NORMAL);
 }
@@ -599,10 +350,6 @@ void test_isfinite()
 #ifdef isfinite
 #error isfinite defined
 #endif
-    static_assert((std::is_same<decltype(isfinite((float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isfinite((double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isfinite(0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isfinite((long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(isfinite(Ambiguous())), Ambiguous>::value), "");
     assert(isfinite(-1.0) == true);
 }
@@ -612,10 +359,6 @@ void test_isnormal()
 #ifdef isnormal
 #error isnormal defined
 #endif
-    static_assert((std::is_same<decltype(isnormal((float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isnormal((double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isnormal(0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isnormal((long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(isnormal(Ambiguous())), Ambiguous>::value), "");
     assert(isnormal(-1.0) == true);
 }
@@ -625,16 +368,6 @@ void test_isgreater()
 #ifdef isgreater
 #error isgreater defined
 #endif
-    static_assert((std::is_same<decltype(isgreater((float)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater((float)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater((float)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater((double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater((double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater(0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater((double)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater((long double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater((long double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreater((long double)0, (long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(isgreater(Ambiguous(), Ambiguous())), Ambiguous>::value), "");
     assert(isgreater(-1.0, 0.F) == false);
 }
@@ -644,16 +377,6 @@ void test_isgreaterequal()
 #ifdef isgreaterequal
 #error isgreaterequal defined
 #endif
-    static_assert((std::is_same<decltype(isgreaterequal((float)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal((float)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal((float)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal((double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal((double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal(0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal((double)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal((long double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal((long double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isgreaterequal((long double)0, (long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(isgreaterequal(Ambiguous(), Ambiguous())), Ambiguous>::value), "");
     assert(isgreaterequal(-1.0, 0.F) == false);
 }
@@ -686,16 +409,6 @@ void test_isless()
 #ifdef isless
 #error isless defined
 #endif
-    static_assert((std::is_same<decltype(isless((float)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless((float)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless((float)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless((double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless((double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless(0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless((double)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless((long double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless((long double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isless((long double)0, (long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(isless(Ambiguous(), Ambiguous())), Ambiguous>::value), "");
     assert(isless(-1.0, 0.F) == true);
 }
@@ -705,16 +418,6 @@ void test_islessequal()
 #ifdef islessequal
 #error islessequal defined
 #endif
-    static_assert((std::is_same<decltype(islessequal((float)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal((float)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal((float)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal((double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal((double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal(0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal((double)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal((long double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal((long double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessequal((long double)0, (long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(islessequal(Ambiguous(), Ambiguous())), Ambiguous>::value), "");
     assert(islessequal(-1.0, 0.F) == true);
 }
@@ -724,16 +427,6 @@ void test_islessgreater()
 #ifdef islessgreater
 #error islessgreater defined
 #endif
-    static_assert((std::is_same<decltype(islessgreater((float)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater((float)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater((float)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater((double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater((double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater(0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater((double)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater((long double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater((long double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(islessgreater((long double)0, (long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(islessgreater(Ambiguous(), Ambiguous())), Ambiguous>::value), "");
     assert(islessgreater(-1.0, 0.F) == true);
 }
@@ -766,33 +459,12 @@ void test_isunordered()
 #ifdef isunordered
 #error isunordered defined
 #endif
-    static_assert((std::is_same<decltype(isunordered((float)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered((float)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered((float)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered((double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered((double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered(0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered((double)0, (long double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered((long double)0, (float)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered((long double)0, (double)0)), bool>::value), "");
-    static_assert((std::is_same<decltype(isunordered((long double)0, (long double)0)), bool>::value), "");
     static_assert((std::is_same<decltype(isunordered(Ambiguous(), Ambiguous())), Ambiguous>::value), "");
     assert(isunordered(-1.0, 0.F) == false);
 }
 
 void test_acosh()
 {
-    static_assert((std::is_same<decltype(acosh((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(acosh((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(acosh((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(acoshf(0)), float>::value), "");
     static_assert((std::is_same<decltype(acoshl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(acosh(Ambiguous())), Ambiguous>::value), "");
@@ -801,17 +473,6 @@ void test_acosh()
 
 void test_asinh()
 {
-    static_assert((std::is_same<decltype(asinh((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(asinh((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(asinh((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(asinhf(0)), float>::value), "");
     static_assert((std::is_same<decltype(asinhl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(asinh(Ambiguous())), Ambiguous>::value), "");
@@ -820,17 +481,6 @@ void test_asinh()
 
 void test_atanh()
 {
-    static_assert((std::is_same<decltype(atanh((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(atanh((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(atanh((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(atanhf(0)), float>::value), "");
     static_assert((std::is_same<decltype(atanhl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(atanh(Ambiguous())), Ambiguous>::value), "");
@@ -838,24 +488,6 @@ void test_atanh()
 }
 
 void test_cbrt() {
-    static_assert((std::is_same<decltype(cbrt((float) 0)), float>::value), "");
-    static_assert((std::is_same<decltype(cbrt((bool) 0)), double>::value), "");
-    static_assert((std::is_same<decltype(cbrt((unsigned short) 0)),
-                                double>::value), "");
-    static_assert((std::is_same<decltype(cbrt((int) 0)), double>::value), "");
-    static_assert((std::is_same<decltype(cbrt((unsigned int) 0)),
-                                double>::value), "");
-    static_assert((std::is_same<decltype(cbrt((long) 0)), double>::value), "");
-    static_assert((std::is_same<decltype(cbrt((unsigned long) 0)),
-                                double>::value), "");
-    static_assert((std::is_same<decltype(cbrt((long long) 0)), double>::value),
-                  "");
-    static_assert((std::is_same<decltype(cbrt((unsigned long long) 0)),
-                                double>::value), "");
-    static_assert((std::is_same<decltype(cbrt((double) 0)), double>::value),
-                  "");
-    static_assert((std::is_same<decltype(cbrt((long double) 0)),
-                                long double>::value), "");
     static_assert((std::is_same<decltype(cbrtf(0)), float>::value), "");
     static_assert((std::is_same<decltype(cbrtl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(cbrt(Ambiguous())), Ambiguous>::value),
@@ -866,20 +498,6 @@ void test_cbrt() {
 
 void test_copysign()
 {
-    static_assert((std::is_same<decltype(copysign((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(copysign((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(copysign((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(copysign((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(copysign((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(copysign((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(copysign((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(copysign((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(copysign((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(copysign((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(copysign((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(copysign((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(copysign((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(copysign((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(copysignf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(copysignl(0,0)), long double>::value), "");
     static_assert((std::is_same<decltype(copysign((int)0, (int)0)), double>::value), "");
@@ -889,17 +507,6 @@ void test_copysign()
 
 void test_erf()
 {
-    static_assert((std::is_same<decltype(erf((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(erf((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erf((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(erff(0)), float>::value), "");
     static_assert((std::is_same<decltype(erfl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(erf(Ambiguous())), Ambiguous>::value), "");
@@ -908,17 +515,6 @@ void test_erf()
 
 void test_erfc()
 {
-    static_assert((std::is_same<decltype(erfc((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(erfc((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(erfc((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(erfcf(0)), float>::value), "");
     static_assert((std::is_same<decltype(erfcl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(erfc(Ambiguous())), Ambiguous>::value), "");
@@ -927,17 +523,6 @@ void test_erfc()
 
 void test_exp2()
 {
-    static_assert((std::is_same<decltype(exp2((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(exp2((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(exp2((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(exp2f(0)), float>::value), "");
     static_assert((std::is_same<decltype(exp2l(0)), long double>::value), "");
     static_assert((std::is_same<decltype(exp2(Ambiguous())), Ambiguous>::value), "");
@@ -946,17 +531,6 @@ void test_exp2()
 
 void test_expm1()
 {
-    static_assert((std::is_same<decltype(expm1((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(expm1((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(expm1((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(expm1f(0)), float>::value), "");
     static_assert((std::is_same<decltype(expm1l(0)), long double>::value), "");
     static_assert((std::is_same<decltype(expm1(Ambiguous())), Ambiguous>::value), "");
@@ -965,20 +539,6 @@ void test_expm1()
 
 void test_fdim()
 {
-    static_assert((std::is_same<decltype(fdim((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(fdim((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fdim((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fdim((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fdim((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fdim((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fdim((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fdim((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fdim((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fdim((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fdim((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fdim((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fdim((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fdim((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fdimf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(fdiml(0,0)), long double>::value), "");
     static_assert((std::is_same<decltype(fdim((int)0, (int)0)), double>::value), "");
@@ -989,31 +549,15 @@ void test_fdim()
 void test_fma()
 {
     static_assert((std::is_same<decltype(fma((bool)0, (float)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((char)0, (float)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((unsigned)0, (float)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((float)0, (int)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((float)0, (long)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((float)0, (float)0, (unsigned long long)0)), double>::value), "");
     static_assert((std::is_same<decltype(fma((float)0, (float)0, (double)0)), double>::value), "");
     static_assert((std::is_same<decltype(fma((float)0, (float)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fma((float)0, (float)0, (float)0)), float>::value), "");
 
     static_assert((std::is_same<decltype(fma((bool)0, (double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((char)0, (double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((unsigned)0, (double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((double)0, (int)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((double)0, (long)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fma((double)0, (double)0, (unsigned long long)0)), double>::value), "");
     static_assert((std::is_same<decltype(fma((double)0, (double)0, (float)0)), double>::value), "");
     static_assert((std::is_same<decltype(fma((double)0, (double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fma((double)0, (double)0,  (double)0)), double>::value), "");
 
-    static_assert((std::is_same<decltype(fma((bool)0, (long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fma((char)0, (long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fma((unsigned)0, (long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fma((long double)0, (int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fma((long double)0, (long)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fma((long double)0, (long double)0, (unsigned long long)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fma((long double)0, (long double)0, (float)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fma((double)0, (long double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fma((long double)0, (long double)0, (long double)0)), long double>::value), "");
@@ -1026,20 +570,6 @@ void test_fma()
 
 void test_fmax()
 {
-    static_assert((std::is_same<decltype(fmax((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(fmax((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmax((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmax((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmax((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmax((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmax((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmax((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmax((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmax((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmax((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmax((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmax((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmax((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fmaxf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(fmaxl(0,0)), long double>::value), "");
     static_assert((std::is_same<decltype(fmax((int)0, (int)0)), double>::value), "");
@@ -1049,20 +579,6 @@ void test_fmax()
 
 void test_fmin()
 {
-    static_assert((std::is_same<decltype(fmin((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(fmin((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmin((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmin((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmin((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmin((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmin((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmin((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmin((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmin((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmin((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmin((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(fmin((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(fmin((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(fminf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(fminl(0,0)), long double>::value), "");
     static_assert((std::is_same<decltype(fmin((int)0, (int)0)), double>::value), "");
@@ -1072,20 +588,6 @@ void test_fmin()
 
 void test_hypot()
 {
-    static_assert((std::is_same<decltype(hypot((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(hypot((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(hypot((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(hypot((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(hypot((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(hypot((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(hypot((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(hypot((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(hypot((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(hypot((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(hypot((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(hypot((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(hypot((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(hypot((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(hypotf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(hypotl(0,0)), long double>::value), "");
     static_assert((std::is_same<decltype(hypot((int)0, (int)0)), double>::value), "");
@@ -1095,17 +597,6 @@ void test_hypot()
 
 void test_ilogb()
 {
-    static_assert((std::is_same<decltype(ilogb((float)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((bool)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((unsigned short)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((int)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((unsigned int)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((long)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((unsigned long)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((long long)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((unsigned long long)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((double)0)), int>::value), "");
-    static_assert((std::is_same<decltype(ilogb((long double)0)), int>::value), "");
     static_assert((std::is_same<decltype(ilogbf(0)), int>::value), "");
     static_assert((std::is_same<decltype(ilogbl(0)), int>::value), "");
     static_assert((std::is_same<decltype(ilogb(Ambiguous())), Ambiguous>::value), "");
@@ -1114,17 +605,6 @@ void test_ilogb()
 
 void test_lgamma()
 {
-    static_assert((std::is_same<decltype(lgamma((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(lgamma((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(lgamma((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(lgammaf(0)), float>::value), "");
     static_assert((std::is_same<decltype(lgammal(0)), long double>::value), "");
     static_assert((std::is_same<decltype(lgamma(Ambiguous())), Ambiguous>::value), "");
@@ -1133,17 +613,6 @@ void test_lgamma()
 
 void test_llrint()
 {
-    static_assert((std::is_same<decltype(llrint((float)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((bool)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((unsigned short)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((int)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((unsigned int)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((long)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((unsigned long)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((long long)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((unsigned long long)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((double)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llrint((long double)0)), long long>::value), "");
     static_assert((std::is_same<decltype(llrintf(0)), long long>::value), "");
     static_assert((std::is_same<decltype(llrintl(0)), long long>::value), "");
     static_assert((std::is_same<decltype(llrint(Ambiguous())), Ambiguous>::value), "");
@@ -1152,17 +621,6 @@ void test_llrint()
 
 void test_llround()
 {
-    static_assert((std::is_same<decltype(llround((float)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((bool)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((unsigned short)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((int)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((unsigned int)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((long)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((unsigned long)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((long long)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((unsigned long long)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((double)0)), long long>::value), "");
-    static_assert((std::is_same<decltype(llround((long double)0)), long long>::value), "");
     static_assert((std::is_same<decltype(llroundf(0)), long long>::value), "");
     static_assert((std::is_same<decltype(llroundl(0)), long long>::value), "");
     static_assert((std::is_same<decltype(llround(Ambiguous())), Ambiguous>::value), "");
@@ -1171,17 +629,6 @@ void test_llround()
 
 void test_log1p()
 {
-    static_assert((std::is_same<decltype(log1p((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(log1p((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log1p((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(log1pf(0)), float>::value), "");
     static_assert((std::is_same<decltype(log1pl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(log1p(Ambiguous())), Ambiguous>::value), "");
@@ -1190,17 +637,6 @@ void test_log1p()
 
 void test_log2()
 {
-    static_assert((std::is_same<decltype(log2((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(log2((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(log2((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(log2f(0)), float>::value), "");
     static_assert((std::is_same<decltype(log2l(0)), long double>::value), "");
     static_assert((std::is_same<decltype(log2(Ambiguous())), Ambiguous>::value), "");
@@ -1209,17 +645,6 @@ void test_log2()
 
 void test_logb()
 {
-    static_assert((std::is_same<decltype(logb((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(logb((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(logb((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(logbf(0)), float>::value), "");
     static_assert((std::is_same<decltype(logbl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(logb(Ambiguous())), Ambiguous>::value), "");
@@ -1228,17 +653,6 @@ void test_logb()
 
 void test_lrint()
 {
-    static_assert((std::is_same<decltype(lrint((float)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((bool)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((unsigned short)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((int)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((unsigned int)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((long)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((unsigned long)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((long long)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((unsigned long long)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((double)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lrint((long double)0)), long>::value), "");
     static_assert((std::is_same<decltype(lrintf(0)), long>::value), "");
     static_assert((std::is_same<decltype(lrintl(0)), long>::value), "");
     static_assert((std::is_same<decltype(lrint(Ambiguous())), Ambiguous>::value), "");
@@ -1247,17 +661,6 @@ void test_lrint()
 
 void test_lround()
 {
-    static_assert((std::is_same<decltype(lround((float)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((bool)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((unsigned short)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((int)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((unsigned int)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((long)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((unsigned long)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((long long)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((unsigned long long)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((double)0)), long>::value), "");
-    static_assert((std::is_same<decltype(lround((long double)0)), long>::value), "");
     static_assert((std::is_same<decltype(lroundf(0)), long>::value), "");
     static_assert((std::is_same<decltype(lroundl(0)), long>::value), "");
     static_assert((std::is_same<decltype(lround(Ambiguous())), Ambiguous>::value), "");
@@ -1273,17 +676,6 @@ void test_nan()
 
 void test_nearbyint()
 {
-    static_assert((std::is_same<decltype(nearbyint((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nearbyint((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(nearbyintf(0)), float>::value), "");
     static_assert((std::is_same<decltype(nearbyintl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(nearbyint(Ambiguous())), Ambiguous>::value), "");
@@ -1292,20 +684,6 @@ void test_nearbyint()
 
 void test_nextafter()
 {
-    static_assert((std::is_same<decltype(nextafter((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(nextafter((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(nextafter((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(nextafterf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(nextafterl(0,0)), long double>::value), "");
     static_assert((std::is_same<decltype(nextafter((int)0, (int)0)), double>::value), "");
@@ -1334,20 +712,6 @@ void test_nexttoward()
 
 void test_remainder()
 {
-    static_assert((std::is_same<decltype(remainder((float)0, (float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(remainder((bool)0, (float)0)), double>::value), "");
-    static_assert((std::is_same<decltype(remainder((unsigned short)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(remainder((int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(remainder((float)0, (unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(remainder((double)0, (long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(remainder((long double)0, (unsigned long)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(remainder((int)0, (long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(remainder((int)0, (unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(remainder((double)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(remainder((long double)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(remainder((float)0, (double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(remainder((float)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(remainder((double)0, (long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(remainderf(0,0)), float>::value), "");
     static_assert((std::is_same<decltype(remainderl(0,0)), long double>::value), "");
     static_assert((std::is_same<decltype(remainder((int)0, (int)0)), double>::value), "");
@@ -1358,20 +722,6 @@ void test_remainder()
 void test_remquo()
 {
     int ip;
-    static_assert((std::is_same<decltype(remquo((float)0, (float)0, &ip)), float>::value), "");
-    static_assert((std::is_same<decltype(remquo((bool)0, (float)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(remquo((unsigned short)0, (double)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(remquo((int)0, (long double)0, &ip)), long double>::value), "");
-    static_assert((std::is_same<decltype(remquo((float)0, (unsigned int)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(remquo((double)0, (long)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(remquo((long double)0, (unsigned long)0, &ip)), long double>::value), "");
-    static_assert((std::is_same<decltype(remquo((int)0, (long long)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(remquo((int)0, (unsigned long long)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(remquo((double)0, (double)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(remquo((long double)0, (long double)0, &ip)), long double>::value), "");
-    static_assert((std::is_same<decltype(remquo((float)0, (double)0, &ip)), double>::value), "");
-    static_assert((std::is_same<decltype(remquo((float)0, (long double)0, &ip)), long double>::value), "");
-    static_assert((std::is_same<decltype(remquo((double)0, (long double)0, &ip)), long double>::value), "");
     static_assert((std::is_same<decltype(remquof(0,0, &ip)), float>::value), "");
     static_assert((std::is_same<decltype(remquol(0,0, &ip)), long double>::value), "");
     static_assert((std::is_same<decltype(remquo((int)0, (int)0, &ip)), double>::value), "");
@@ -1381,17 +731,6 @@ void test_remquo()
 
 void test_rint()
 {
-    static_assert((std::is_same<decltype(rint((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(rint((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(rint((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(rintf(0)), float>::value), "");
     static_assert((std::is_same<decltype(rintl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(rint(Ambiguous())), Ambiguous>::value), "");
@@ -1400,17 +739,6 @@ void test_rint()
 
 void test_round()
 {
-    static_assert((std::is_same<decltype(round((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(round((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(round((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(roundf(0)), float>::value), "");
     static_assert((std::is_same<decltype(roundl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(round(Ambiguous())), Ambiguous>::value), "");
@@ -1457,17 +785,6 @@ void test_scalbn()
 
 void test_tgamma()
 {
-    static_assert((std::is_same<decltype(tgamma((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(tgamma((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(tgamma((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(tgammaf(0)), float>::value), "");
     static_assert((std::is_same<decltype(tgammal(0)), long double>::value), "");
     static_assert((std::is_same<decltype(tgamma(Ambiguous())), Ambiguous>::value), "");
@@ -1476,95 +793,282 @@ void test_tgamma()
 
 void test_trunc()
 {
-    static_assert((std::is_same<decltype(trunc((float)0)), float>::value), "");
-    static_assert((std::is_same<decltype(trunc((bool)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((unsigned short)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((unsigned int)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((unsigned long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((unsigned long long)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((double)0)), double>::value), "");
-    static_assert((std::is_same<decltype(trunc((long double)0)), long double>::value), "");
     static_assert((std::is_same<decltype(truncf(0)), float>::value), "");
     static_assert((std::is_same<decltype(truncl(0)), long double>::value), "");
     static_assert((std::is_same<decltype(trunc(Ambiguous())), Ambiguous>::value), "");
     assert(trunc(1) == 1);
 }
 
+template <class PromoteResult, class Arg = void>
+struct test_single_arg {
+  template <class T = Arg>
+  void operator()() {
+    static_assert((std::is_same<decltype(::acos(T())), PromoteResult>::value), "");
+    (void)::acos(T());
+    static_assert((std::is_same<decltype(::asin(T())), PromoteResult>::value), "");
+    (void)::asin(T());
+    static_assert((std::is_same<decltype(::atan(T())), PromoteResult>::value), "");
+    (void)::atan(T());
+    static_assert((std::is_same<decltype(::ceil(T())), PromoteResult>::value), "");
+    (void)::ceil(T());
+    static_assert((std::is_same<decltype(::cos(T())), PromoteResult>::value), "");
+    (void)::cos(T());
+    static_assert((std::is_same<decltype(::cosh(T())), PromoteResult>::value), "");
+    (void)::cosh(T());
+    static_assert((std::is_same<decltype(::exp(T())), PromoteResult>::value), "");
+    (void)::exp(T());
+    static_assert((std::is_same<decltype(::fabs(T())), PromoteResult>::value), "");
+    (void)::fabs(T());
+    static_assert((std::is_same<decltype(::floor(T())), PromoteResult>::value), "");
+    (void)::floor(T());
+    int ip;
+    static_assert((std::is_same<decltype(::frexp(T(), &ip)), PromoteResult>::value), "");
+    (void)::frexp(T(), &ip);
+    static_assert((std::is_same<decltype(::ldexp(T(), ip)), PromoteResult>::value), "");
+    (void)::ldexp(T(), ip);
+    static_assert((std::is_same<decltype(::log(T())), PromoteResult>::value), "");
+    (void)::log(T());
+    static_assert((std::is_same<decltype(::log10(T())), PromoteResult>::value), "");
+    (void)::log10(T());
+    static_assert((std::is_same<decltype(::sin(T())), PromoteResult>::value), "");
+    (void)::sin(T());
+    static_assert((std::is_same<decltype(::sinh(T())), PromoteResult>::value), "");
+    (void)::sinh(T());
+    static_assert((std::is_same<decltype(::sqrt(T())), PromoteResult>::value), "");
+    (void)::sqrt(T());
+    static_assert((std::is_same<decltype(::tan(T())), PromoteResult>::value), "");
+    (void)::tan(T());
+    static_assert((std::is_same<decltype(::tanh(T())), PromoteResult>::value), "");
+    (void)::tanh(T());
+    static_assert((std::is_same<decltype(::signbit(T())), bool>::value), "");
+    (void)::signbit(T());
+    static_assert((std::is_same<decltype(::fpclassify(T())), int>::value), "");
+    (void)::fpclassify(T());
+    static_assert((std::is_same<decltype(::isfinite(T())), bool>::value), "");
+    (void)::isfinite(T());
+    static_assert((std::is_same<decltype(::isnormal(T())), bool>::value), "");
+    (void)::isnormal(T());
+    static_assert((std::is_same<decltype(::acosh(T())), PromoteResult>::value), "");
+    (void)::acosh(T());
+    static_assert((std::is_same<decltype(::asinh(T())), PromoteResult>::value), "");
+    (void)::asinh(T());
+    static_assert((std::is_same<decltype(::atanh(T())), PromoteResult>::value), "");
+    (void)::atanh(T());
+    static_assert((std::is_same<decltype(::cbrt(T())), PromoteResult>::value), "");
+    (void)::cbrt(T());
+    static_assert((std::is_same<decltype(::erf(T())), PromoteResult>::value), "");
+    (void)::erf(T());
+    static_assert((std::is_same<decltype(::erfc(T())), PromoteResult>::value), "");
+    (void)::erfc(T());
+    static_assert((std::is_same<decltype(::exp2(T())), PromoteResult>::value), "");
+    (void)::exp2(T());
+    static_assert((std::is_same<decltype(::expm1(T())), PromoteResult>::value), "");
+    (void)::expm1(T());
+    static_assert((std::is_same<decltype(::ilogb(T())), int>::value), "");
+    (void)::ilogb(T());
+    static_assert((std::is_same<decltype(::lgamma(T())), PromoteResult>::value), "");
+    (void)::lgamma(T());
+    static_assert((std::is_same<decltype(::llrint(T())), long long>::value), "");
+    (void)::llrint(T());
+    static_assert((std::is_same<decltype(::llround(T())), long long>::value), "");
+    (void)::llround(T());
+    static_assert((std::is_same<decltype(::log1p(T())), PromoteResult>::value), "");
+    (void)::log1p(T());
+    static_assert((std::is_same<decltype(::log2(T())), PromoteResult>::value), "");
+    (void)::log2(T());
+    static_assert((std::is_same<decltype(::logb(T())), PromoteResult>::value), "");
+    (void)::logb(T());
+    static_assert((std::is_same<decltype(::lrint(T())), long>::value), "");
+    (void)::lrint(T());
+    static_assert((std::is_same<decltype(::lround(T())), long>::value), "");
+    (void)::lround(T());
+    static_assert((std::is_same<decltype(::nearbyint(T())), PromoteResult>::value), "");
+    (void)::nearbyint(T());
+    static_assert((std::is_same<decltype(::rint(T())), PromoteResult>::value), "");
+    (void)::rint(T());
+    static_assert((std::is_same<decltype(::round(T())), PromoteResult>::value), "");
+    (void)::round(T());
+    static_assert((std::is_same<decltype(::trunc(T())), PromoteResult>::value), "");
+    (void)::trunc(T());
+    static_assert((std::is_same<decltype(::tgamma(T())), PromoteResult>::value), "");
+    (void)::tgamma(T());
+  }
+};
+
+template <class PromoteResult, class Arg1 = void, class Arg2 = void>
+struct test_two_args {
+  template <class T = Arg1, class U = Arg2>
+  void operator()() {
+    static_assert((std::is_same<decltype(::atan2(T(), U())), PromoteResult>::value), "");
+    (void)::atan2(T(), U());
+    static_assert((std::is_same<decltype(::fmod(T(), U())), PromoteResult>::value), "");
+    (void)::fmod(T(), U());
+    static_assert((std::is_same<decltype(::pow(T(), U())), PromoteResult>::value), "");
+    (void)::pow(T(), U());
+    static_assert((std::is_same<decltype(::isgreater(T(), U())), bool>::value), "");
+    (void)::isgreater(T(), U());
+    static_assert((std::is_same<decltype(::isgreaterequal(T(), U())), bool>::value), "");
+    (void)::isgreaterequal(T(), U());
+    static_assert((std::is_same<decltype(::isless(T(), U())), bool>::value), "");
+    (void)::isless(T(), U());
+    static_assert((std::is_same<decltype(::islessequal(T(), U())), bool>::value), "");
+    (void)::islessequal(T(), U());
+    static_assert((std::is_same<decltype(::islessgreater(T(), U())), bool>::value), "");
+    (void)::islessgreater(T(), U());
+    static_assert((std::is_same<decltype(::isunordered(T(), U())), bool>::value), "");
+    (void)::isunordered(T(), U());
+    static_assert((std::is_same<decltype(::copysign(T(), U())), PromoteResult>::value), "");
+    (void)::copysign(T(), U());
+    static_assert((std::is_same<decltype(::fdim(T(), U())), PromoteResult>::value), "");
+    (void)::fdim(T(), U());
+    static_assert((std::is_same<decltype(::fmax(T(), U())), PromoteResult>::value), "");
+    (void)::fmax(T(), U());
+    static_assert((std::is_same<decltype(::fmin(T(), U())), PromoteResult>::value), "");
+    (void)::fmin(T(), U());
+    static_assert((std::is_same<decltype(::hypot(T(), U())), PromoteResult>::value), "");
+    (void)::hypot(T(), U());
+    static_assert((std::is_same<decltype(::nextafter(T(), U())), PromoteResult>::value), "");
+    (void)::nextafter(T(), U());
+    static_assert((std::is_same<decltype(::remainder(T(), U())), PromoteResult>::value), "");
+    (void)::remainder(T(), U());
+    int ip;
+    static_assert((std::is_same<decltype(::remquo(T(), U(), &ip)), PromoteResult>::value), "");
+    ::remquo(T(), U(), &ip);
+  }
+};
+
+template <class PromoteResult, class Arg1 = void, class Arg2 = void, class Arg3 = void>
+struct test_three_args {
+  template <class T = Arg1, class U = Arg2, class V = Arg3>
+  void operator()() {
+    static_assert((std::is_same<decltype(::fma(T(), U(), V())), PromoteResult>::value), "");
+    (void)::fma(T(), U(), V());
+  }
+};
+
+struct CallTwoArgs {
+  using integral_float_double = meta::concatenate_t<meta::integral_types, meta::type_list<float, double> >;
+
+  template <class Arg2>
+  void operator()() {
+    meta::for_each(integral_float_double(), test_two_args</*PromoteResult=*/double, /*Iterate*/void, Arg2>());
+  }
+};
+
+template <class T>
+struct CallThreeArgs {
+  using integral_float_double = meta::concatenate_t<meta::integral_types, meta::type_list<float, double> >;
+
+  template <class Arg3>
+  struct Helper {
+
+    template <class Arg2>
+    void operator()() {
+      meta::for_each(integral_float_double(), test_three_args</*PromoteResult=*/double, /*Iterate*/void, Arg2, Arg3>());
+    }
+  };
+
+  template <class Arg3>
+  void operator()() {
+    meta::for_each(integral_float_double(), Helper<Arg3>());
+  }
+};
+
 int main(int, char**)
 {
-    test_abs();
-    test_acos();
-    test_asin();
-    test_atan();
-    test_atan2();
-    test_ceil();
-    test_cos();
-    test_cosh();
-    test_exp();
-    test_fabs();
-    test_floor();
-    test_fmod();
-    test_frexp();
-    test_ldexp();
-    test_log();
-    test_log10();
-    test_modf();
-    test_pow();
-    test_sin();
-    test_sinh();
-    test_sqrt();
-    test_tan();
-    test_tanh();
-    test_signbit();
-    test_fpclassify();
-    test_isfinite();
-    test_isnormal();
-    test_isgreater();
-    test_isgreaterequal();
-    test_isinf();
-    test_isless();
-    test_islessequal();
-    test_islessgreater();
-    test_isnan();
-    test_isunordered();
-    test_acosh();
-    test_asinh();
-    test_atanh();
-    test_cbrt();
-    test_copysign();
-    test_erf();
-    test_erfc();
-    test_exp2();
-    test_expm1();
-    test_fdim();
-    test_fma();
-    test_fmax();
-    test_fmin();
-    test_hypot();
-    test_ilogb();
-    test_lgamma();
-    test_llrint();
-    test_llround();
-    test_log1p();
-    test_log2();
-    test_logb();
-    test_lrint();
-    test_lround();
-    test_nan();
-    test_nearbyint();
-    test_nextafter();
-    test_nexttoward();
-    test_remainder();
-    test_remquo();
-    test_rint();
-    test_round();
-    test_scalbln();
-    test_scalbn();
-    test_tgamma();
-    test_trunc();
+  meta::for_each(meta::integral_types(), test_single_arg</*PromoteResult=*/double>());
+  test_single_arg</*PromoteResult=*/float, /*Arg=*/float>();
+  test_single_arg</*PromoteResult=*/double, /*Arg=*/double>();
+  test_single_arg</*PromoteResult=*/long double, /*Arg=*/long double>();
+
+  meta::for_each(meta::integral_types(), CallTwoArgs());
+
+  meta::for_each(
+      meta::integral_types(), test_two_args</*PromoteResult=*/long double, /*Arg1=*/void, /*Arg2=*/long double>());
+
+  test_two_args</*PromoteResult=*/float, /*Args=*/float, float>();
+  test_two_args</*PromoteResult=*/float, /*Args=*/double, double>();
+  test_two_args</*PromoteResult=*/double, /*Args=*/float, double>();
+  test_two_args</*PromoteResult=*/double, /*Args=*/double, double>();
+
+  meta::for_each(meta::integral_types(), CallThreeArgs<double>());
+  meta::for_each(
+      meta::integral_types(), test_three_args</*PromoteResult=*/long double, /*Iterate*/ void, long double, double>());
+
+  test_three_args</*PromoteResult=*/float, /*Args=*/float, float, float>();
+  test_three_args</*PromoteResult=*/double, /*Args=*/double, double, double>();
+  test_three_args</*PromoteResult=*/long double, /*Args=*/long double, long double, long double>();
+
+  test_abs();
+  test_acos();
+  test_asin();
+  test_atan();
+  test_atan2();
+  test_ceil();
+  test_cos();
+  test_cosh();
+  test_exp();
+  test_fabs();
+  test_floor();
+  test_fmod();
+  test_frexp();
+  test_ldexp();
+  test_log();
+  test_log10();
+  test_modf();
+  test_pow();
+  test_sin();
+  test_sinh();
+  test_sqrt();
+  test_tan();
+  test_tanh();
+  test_signbit();
+  test_fpclassify();
+  test_isfinite();
+  test_isnormal();
+  test_isgreater();
+  test_isgreaterequal();
+  test_isinf();
+  test_isless();
+  test_islessequal();
+  test_islessgreater();
+  test_isnan();
+  test_isunordered();
+  test_acosh();
+  test_asinh();
+  test_atanh();
+  test_cbrt();
+  test_copysign();
+  test_erf();
+  test_erfc();
+  test_exp2();
+  test_expm1();
+  test_fdim();
+  test_fma();
+  test_fmax();
+  test_fmin();
+  test_hypot();
+  test_ilogb();
+  test_lgamma();
+  test_llrint();
+  test_llround();
+  test_log1p();
+  test_log2();
+  test_logb();
+  test_lrint();
+  test_lround();
+  test_nan();
+  test_nearbyint();
+  test_nextafter();
+  test_nexttoward();
+  test_remainder();
+  test_remquo();
+  test_rint();
+  test_round();
+  test_scalbln();
+  test_scalbn();
+  test_tgamma();
+  test_trunc();
 
   return 0;
 }


        


More information about the libcxx-commits mailing list