diff --git a/tests/src/deviceLib/hipDoublePrecisionMathHost.cpp b/tests/src/deviceLib/hipDoublePrecisionMathHost.cpp index a3283622ff..295d2f5c95 100644 --- a/tests/src/deviceLib/hipDoublePrecisionMathHost.cpp +++ b/tests/src/deviceLib/hipDoublePrecisionMathHost.cpp @@ -59,7 +59,9 @@ __host__ void double_precision_math_functions() { // erfcx(0.0); // erfinv(1.0); exp(0.0); + #ifdef __unix__ exp10(0.0); + #endif exp2(0.0); expm1(0.0); fabs(1.0); @@ -75,9 +77,15 @@ __host__ void double_precision_math_functions() { std::isfinite(0.0); std::isinf(0.0); std::isnan(0.0); + #ifdef __unix__ j0(0.0); j1(0.0); jn(-1.0, 1.0); + #elif _WIN64 + _j0(0.0); + _j1(0.0); + _jn(-1.0, 1.0); + #endif ldexp(0.0, 0); // lgamma(1.0); llrint(0.0); @@ -120,7 +128,9 @@ __host__ void double_precision_math_functions() { scalbn(0.0, 1); std::signbit(1.0); sin(0.0); + #ifdef _unix__ sincos(0.0, &fX, &fY); + #endif // sincospi(0.0, &fX, &fY); sinh(0.0); // sinpi(0.0); @@ -129,9 +139,15 @@ __host__ void double_precision_math_functions() { tanh(0.0); tgamma(2.0); trunc(0.0); + #ifdef __unix__ y0(1.0); y1(1.0); yn(1, 1.0); + #elif _WIN64 + _y0(1.0); + _y1(1.0); + _yn(1, 1.0); + #endif } static void compileOnHost() { double_precision_math_functions(); } diff --git a/tests/src/deviceLib/hipSinglePrecisionMathHost.cpp b/tests/src/deviceLib/hipSinglePrecisionMathHost.cpp index 1dd5737f86..78c2099e8f 100644 --- a/tests/src/deviceLib/hipSinglePrecisionMathHost.cpp +++ b/tests/src/deviceLib/hipSinglePrecisionMathHost.cpp @@ -58,7 +58,9 @@ __host__ void single_precision_math_functions() { // erfcxf(0.0f); erff(0.0f); // erfinvf(1.0f); + #ifdef __unix__ exp10f(0.0f); + #endif exp2f(0.0f); expf(0.0f); expm1f(0.0f); @@ -78,9 +80,11 @@ __host__ void single_precision_math_functions() { std::isfinite(0.0f); std::isinf(0.0f); std::isnan(0.0f); + #ifdef __unix__ j0f(0.0f); j1f(0.0f); jnf(-1.0f, 1.0f); + #endif ldexpf(0.0f, 0); lgammaf(1.0f); llrintf(0.0f); @@ -121,7 +125,9 @@ __host__ void single_precision_math_functions() { scalblnf(0.0f, 1); scalbnf(0.0f, 1); std::signbit(1.0f); + #ifdef __unix__ sincosf(0.0f, &fX, &fY); + #endif // sincospif(0.0f, &fX, &fY); sinf(0.0f); sinhf(0.0f); @@ -131,9 +137,11 @@ __host__ void single_precision_math_functions() { tanhf(0.0f); tgammaf(2.0f); truncf(0.0f); + #ifdef __unix__ y0f(1.0f); y1f(1.0f); ynf(1, 1.0f); + #endif } static void compileOnHost() { single_precision_math_functions(); }