Fixed isnan on CUDA #727

This commit is contained in:
Christophe Riccio
2018-05-07 18:21:48 +02:00
parent b3a24a0565
commit 62dfe7adfb
2 changed files with 3 additions and 2 deletions

View File

@@ -640,7 +640,7 @@ namespace detail
# elif (GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG)) && (GLM_PLATFORM & GLM_PLATFORM_ANDROID) && __cplusplus < 201103L
return _isnan(x) != 0;
# elif GLM_COMPILER & GLM_COMPILER_CUDA
return isnan(x) != 0;
return ::isnan(x) != 0;
# else
return std::isnan(x);
# endif
@@ -682,7 +682,7 @@ namespace detail
# endif
# elif GLM_COMPILER & GLM_COMPILER_CUDA
// http://developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/docs/online/group__CUDA__MATH__DOUBLE_g13431dd2b40b51f9139cbb7f50c18fab.html#g13431dd2b40b51f9139cbb7f50c18fab
return isinf(double(x)) != 0;
return ::isinf(double(x)) != 0;
# else
return std::isinf(x);
# endif