mirror of
https://github.com/g-truc/glm.git
synced 2025-04-13 16:50:38 +00:00
Added specific code path to isnan and isinf for CUDA, issue #35
This commit is contained in:
parent
a7feb46c1a
commit
115c7fc64a
1 changed files with 5 additions and 0 deletions
|
@ -811,6 +811,8 @@ namespace detail
|
|||
# else
|
||||
return std::isnan(x);
|
||||
# endif
|
||||
# elif(GLM_COMPILER & GLM_COMPILER_CUDA)
|
||||
return isnan(x) != 0;
|
||||
# else
|
||||
return std::isnan(x);
|
||||
# endif
|
||||
|
@ -866,6 +868,9 @@ namespace detail
|
|||
# else
|
||||
return std::isinf(x);
|
||||
# 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
|
||||
return std::isinf(x);
|
||||
# endif
|
||||
|
|
Loading…
Add table
Reference in a new issue