compute_vector_relational.hpp 630 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. //#include "compute_common.hpp"
  3. #include "setup.hpp"
  4. #include <limits>
  5. namespace glm{
  6. namespace detail
  7. {
  8. template <typename T, bool isFloat>
  9. struct compute_equal
  10. {
  11. GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(T a, T b)
  12. {
  13. return a == b;
  14. }
  15. };
  16. /*
  17. template <typename T>
  18. struct compute_equal<T, true>
  19. {
  20. GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(T a, T b)
  21. {
  22. return detail::compute_abs<T, std::numeric_limits<T>::is_signed>::call(b - a) <= static_cast<T>(0);
  23. //return std::memcmp(&a, &b, sizeof(T)) == 0;
  24. }
  25. };
  26. */
  27. }//namespace detail
  28. }//namespace glm