summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/compatibility.inl
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-07 04:56:57 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-07 04:56:57 +0200
commit83889ba33dad2743eeb2a79102a1117ec9220025 (patch)
tree7e15713639a4e0c12f1a06e467dd0b3d79070983 /external/include/glm/gtx/compatibility.inl
parentReplaced find_package with CPMAddPackage for more libraries (diff)
downloadAltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.gz
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.bz2
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.lz
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.xz
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.zst
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.zip
Diffstat (limited to 'external/include/glm/gtx/compatibility.inl')
-rw-r--r--external/include/glm/gtx/compatibility.inl65
1 files changed, 0 insertions, 65 deletions
diff --git a/external/include/glm/gtx/compatibility.inl b/external/include/glm/gtx/compatibility.inl
deleted file mode 100644
index 11affa1..0000000
--- a/external/include/glm/gtx/compatibility.inl
+++ /dev/null
@@ -1,65 +0,0 @@
-/// @ref gtx_compatibility
-/// @file glm/gtx/compatibility.inl
-
-#include <limits>
-
-namespace glm
-{
- // isfinite
- template<typename genType>
- GLM_FUNC_QUALIFIER bool isfinite(
- genType const& x)
- {
-# if GLM_HAS_CXX11_STL
- return std::isfinite(x) != 0;
-# elif GLM_COMPILER & GLM_COMPILER_VC
- return _finite(x);
-# elif GLM_COMPILER & GLM_COMPILER_GCC && GLM_PLATFORM & GLM_PLATFORM_ANDROID
- return _isfinite(x) != 0;
-# else
- if (std::numeric_limits<genType>::is_integer || std::denorm_absent == std::numeric_limits<genType>::has_denorm)
- return std::numeric_limits<genType>::min() <= x && std::numeric_limits<genType>::max() >= x;
- else
- return -std::numeric_limits<genType>::max() <= x && std::numeric_limits<genType>::max() >= x;
-# endif
- }
-
- template<typename T, qualifier Q>
- GLM_FUNC_QUALIFIER vec<1, bool, Q> isfinite(
- vec<1, T, Q> const& x)
- {
- return vec<1, bool, Q>(
- isfinite(x.x));
- }
-
- template<typename T, qualifier Q>
- GLM_FUNC_QUALIFIER vec<2, bool, Q> isfinite(
- vec<2, T, Q> const& x)
- {
- return vec<2, bool, Q>(
- isfinite(x.x),
- isfinite(x.y));
- }
-
- template<typename T, qualifier Q>
- GLM_FUNC_QUALIFIER vec<3, bool, Q> isfinite(
- vec<3, T, Q> const& x)
- {
- return vec<3, bool, Q>(
- isfinite(x.x),
- isfinite(x.y),
- isfinite(x.z));
- }
-
- template<typename T, qualifier Q>
- GLM_FUNC_QUALIFIER vec<4, bool, Q> isfinite(
- vec<4, T, Q> const& x)
- {
- return vec<4, bool, Q>(
- isfinite(x.x),
- isfinite(x.y),
- isfinite(x.z),
- isfinite(x.w));
- }
-
-}//namespace glm