mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5
This commit is contained in:
commit
a614e5da63
@ -713,7 +713,9 @@ namespace detail
|
|||||||
std::numeric_limits<genType>::is_iec559,
|
std::numeric_limits<genType>::is_iec559,
|
||||||
"'isnan' only accept floating-point inputs");
|
"'isnan' only accept floating-point inputs");
|
||||||
|
|
||||||
# if(GLM_COMPILER & (GLM_COMPILER_VC | GLM_COMPILER_INTEL))
|
# if(GLM_LANG & GLM_LANG_CXX11_FLAG)
|
||||||
|
return std::isnan(x);
|
||||||
|
# elif(GLM_COMPILER & (GLM_COMPILER_VC | GLM_COMPILER_INTEL))
|
||||||
return _isnan(x) != 0;
|
return _isnan(x) != 0;
|
||||||
# elif(GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG))
|
# elif(GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG))
|
||||||
# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID && __cplusplus < 201103L)
|
# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID && __cplusplus < 201103L)
|
||||||
@ -780,11 +782,11 @@ namespace detail
|
|||||||
GLM_FUNC_QUALIFIER bool isinf(
|
GLM_FUNC_QUALIFIER bool isinf(
|
||||||
genType const & x)
|
genType const & x)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'isinf' only accept floating-point inputs");
|
||||||
std::numeric_limits<genType>::is_iec559,
|
|
||||||
"'isinf' only accept floating-point inputs");
|
|
||||||
|
|
||||||
# if(GLM_COMPILER & (GLM_COMPILER_INTEL | GLM_COMPILER_VC))
|
# if(GLM_LANG & GLM_LANG_CXX11_FLAG)
|
||||||
|
return std::isinf(x);
|
||||||
|
# elif(GLM_COMPILER & (GLM_COMPILER_INTEL | GLM_COMPILER_VC))
|
||||||
return _fpclass(x) == _FPCLASS_NINF || _fpclass(x) == _FPCLASS_PINF;
|
return _fpclass(x) == _FPCLASS_NINF || _fpclass(x) == _FPCLASS_PINF;
|
||||||
# elif(GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG))
|
# elif(GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG))
|
||||||
# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID && __cplusplus < 201103L)
|
# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID && __cplusplus < 201103L)
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
// File : glm/gtx/compatibility.inl
|
// File : glm/gtx/compatibility.inl
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
{
|
{
|
||||||
// isfinite
|
// isfinite
|
||||||
@ -21,7 +23,7 @@ namespace glm
|
|||||||
# elif(GLM_COMPILER & GLM_COMPILER_GCC && GLM_PLATFORM & GLM_PLATFORM_ANDROID)
|
# elif(GLM_COMPILER & GLM_COMPILER_GCC && GLM_PLATFORM & GLM_PLATFORM_ANDROID)
|
||||||
return _isfinite(x) != 0;
|
return _isfinite(x) != 0;
|
||||||
# else
|
# else
|
||||||
return isfinite(x) != 0;
|
return x >= std::numeric_limits<genType>::min() && x <= std::numeric_limits<genType>::max();
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,8 @@ GLM 0.9.5.5: 2014-XX-XX
|
|||||||
- Fixed std::nextafter not supported with C++11 on Android #213
|
- Fixed std::nextafter not supported with C++11 on Android #213
|
||||||
- Fixed missing value_type for dual quaternion
|
- Fixed missing value_type for dual quaternion
|
||||||
- Fixed return type of dual quaternion length
|
- Fixed return type of dual quaternion length
|
||||||
|
- Fixed infinite loop in isfinite function with GCC #221
|
||||||
|
- Rely on C++11 to implement isinf and isnan
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
GLM 0.9.5.4: 2014-06-21
|
GLM 0.9.5.4: 2014-06-21
|
||||||
|
Loading…
Reference in New Issue
Block a user