Fixed long long warnings, fixed precision qualifier values on Clang where qualifiers had the same values

master
Christophe Riccio ago%!(EXTRA string=9 years)
parent c80e142816
commit 6a6b54b699
  1. 6
      glm/detail/precision.hpp
  2. 27
      glm/detail/type_int.hpp
  3. 9
      test/gtx/gtx_io.cpp

@ -10,13 +10,13 @@ namespace glm
highp,
mediump,
lowp,
aligned_highp,
aligned_mediump,
aligned_lowp,
packed_highp = highp,
packed_mediump = mediump,
packed_lowp = lowp,
packed = packed_highp,
aligned_highp,
aligned_mediump,
aligned_lowp,
aligned = aligned_highp,
# ifdef GLM_FORCE_ALIGNED
defaultp = aligned_highp

@ -35,23 +35,15 @@ namespace detail
typedef unsigned __int64 uint64;
# elif GLM_COMPILER & GLM_COMPILER_GCC
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wno-long-long"
__extension__ typedef signed long long sint64;
__extension__ typedef unsigned long long uint64;
# pragma GCC diagnostic pop
# elif (GLM_COMPILER & GLM_COMPILER_CLANG)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc++11-long-long"
typedef signed long long sint64;
typedef unsigned long long uint64;
# pragma clang diagnostic pop
# else//unknown compiler
typedef signed long long sint64;
typedef unsigned long long uint64;
@ -184,16 +176,6 @@ namespace detail
{
typedef unsigned long type;
};
# if GLM_COMPILER & GLM_COMPILER_GCC
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wno-long-long"
# endif
# if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc++11-long-long"
# endif
template <>
struct make_signed<long long>
@ -218,15 +200,6 @@ namespace detail
{
typedef unsigned long long type;
};
# if GLM_COMPILER & GLM_COMPILER_GCC
# pragma GCC diagnostic pop
# endif
# if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic pop
# endif
# endif//GLM_HAS_MAKE_SIGNED
}//namespace detail

@ -14,9 +14,12 @@ namespace
if (cerberus)
{
switch (a) {
case glm::highp: os << "hi"; break;
case glm::mediump: os << "md"; break;
case glm::lowp: os << "lo"; break;
case glm::highp: os << "uhi"; break;
case glm::mediump: os << "umd"; break;
case glm::lowp: os << "ulo"; break;
case glm::aligned_highp: os << "ahi"; break;
case glm::aligned_mediump: os << "amd"; break;
case glm::aligned_lowp: os << "alo"; break;
}
}

Loading…
Cancel
Save