0.9.9 API documenation
compute_vector_relational.hpp
1 #pragma once
2 
3 #include "setup.hpp"
4 #include <cstring>
5 #include <limits>
6 
7 namespace glm{
8 namespace detail
9 {
10  template <typename T, bool isFloat = std::numeric_limits<T>::is_iec559>
11  struct compute_equal
12  {
13  GLM_FUNC_QUALIFIER static bool call(T a, T b)
14  {
15  return a == b;
16  }
17  };
18 
19  template <typename T>
20  struct compute_equal<T, true>
21  {
22  GLM_FUNC_QUALIFIER static bool call(T a, T b)
23  {
24  return std::memcmp(&a, &b, sizeof(T)) == 0;
25  }
26  };
27 }//namespace detail
28 }//namespace glm
Definition: common.hpp:20
Core features