|
@@ -811,6 +811,8 @@ namespace detail
|
|
|
# else
|
|
# else
|
|
|
return std::isnan(x);
|
|
return std::isnan(x);
|
|
|
# endif
|
|
# endif
|
|
|
|
|
+# elif(GLM_COMPILER & GLM_COMPILER_CUDA)
|
|
|
|
|
+ return isnan(x) != 0;
|
|
|
# else
|
|
# else
|
|
|
return std::isnan(x);
|
|
return std::isnan(x);
|
|
|
# endif
|
|
# endif
|
|
@@ -866,6 +868,9 @@ namespace detail
|
|
|
# else
|
|
# else
|
|
|
return std::isinf(x);
|
|
return std::isinf(x);
|
|
|
# endif
|
|
# 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;
|
|
|
# else
|
|
# else
|
|
|
return std::isinf(x);
|
|
return std::isinf(x);
|
|
|
# endif
|
|
# endif
|