summaryrefslogtreecommitdiffstats
path: root/external/include/glm/detail/compute_vector_relational.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:40:38 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:40:38 +0200
commit2877f4eda3d1b0c7431039e3142ecf1a282a34b1 (patch)
tree58ad35e27ab2a3b8955f5adbf28f296670681ffc /external/include/glm/detail/compute_vector_relational.hpp
parentSmooth sun movement (diff)
downloadAltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.gz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.bz2
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.lz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.xz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.zst
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.zip
Diffstat (limited to 'external/include/glm/detail/compute_vector_relational.hpp')
-rw-r--r--external/include/glm/detail/compute_vector_relational.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/external/include/glm/detail/compute_vector_relational.hpp b/external/include/glm/detail/compute_vector_relational.hpp
new file mode 100644
index 0000000..e5610ef
--- /dev/null
+++ b/external/include/glm/detail/compute_vector_relational.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "setup.hpp"
+#include <cstring>
+#include <limits>
+
+namespace glm{
+namespace detail
+{
+ template <typename T, bool isFloat = std::numeric_limits<T>::is_iec559>
+ struct compute_equal
+ {
+ GLM_FUNC_QUALIFIER static bool call(T a, T b)
+ {
+ return a == b;
+ }
+ };
+
+ template <typename T>
+ struct compute_equal<T, true>
+ {
+ GLM_FUNC_QUALIFIER static bool call(T a, T b)
+ {
+ return std::memcmp(&a, &b, sizeof(T)) == 0;
+ }
+ };
+}//namespace detail
+}//namespace glm