diff options
Diffstat (limited to 'utests/compiler_math.cpp')
-rw-r--r-- | utests/compiler_math.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utests/compiler_math.cpp b/utests/compiler_math.cpp index e0c44871..0c238c9f 100644 --- a/utests/compiler_math.cpp +++ b/utests/compiler_math.cpp @@ -72,10 +72,10 @@ static void compiler_math(void) for (int i = 0; i < 16; ++i) { const float cpu = cpu_dst[i]; const float gpu = ((float*)buf_data[0])[i]; - if (isinf(cpu)) - OCL_ASSERT(isinf(gpu)); - else if (isnan(cpu)) - OCL_ASSERT(isnan(gpu)); + if (std::isinf(cpu)) + OCL_ASSERT(std::isinf(gpu)); + else if (std::isnan(cpu)) + OCL_ASSERT(std::isnan(gpu)); else OCL_ASSERT(fabs(gpu-cpu) < 1e-3f); } |