mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 02:34:35 +00:00
Corrected test for msvc compiler
This commit is contained in:
parent
ec5e34e04f
commit
460b6ba1b6
@ -317,7 +317,7 @@ namespace detail
|
||||
template <typename T, glm::precision P, template <typename, glm::precision> class vecType>
|
||||
GLM_FUNC_QUALIFIER vecType<int, P> bitCount(vecType<T, P> const & v)
|
||||
{
|
||||
#ifdef GLM_COMPILER_VC
|
||||
#if GLM_COMPILER & GLM_COMPILER_VC
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4310) //cast truncates constant value
|
||||
#endif
|
||||
@ -329,7 +329,7 @@ namespace detail
|
||||
x = detail::compute_bitfieldBitCountStep<typename detail::make_unsigned<T>::type, P, vecType, detail::is_aligned<P>::value, sizeof(T) * 8>= 32>::call(x, typename detail::make_unsigned<T>::type(0x0000FFFF0000FFFFull), typename detail::make_unsigned<T>::type(16));
|
||||
x = detail::compute_bitfieldBitCountStep<typename detail::make_unsigned<T>::type, P, vecType, detail::is_aligned<P>::value, sizeof(T) * 8>= 64>::call(x, typename detail::make_unsigned<T>::type(0x00000000FFFFFFFFull), typename detail::make_unsigned<T>::type(32));
|
||||
return vecType<int, P>(x);
|
||||
#ifdef GLM_COMPILER_VC
|
||||
#if GLM_COMPILER & GLM_COMPILER_VC
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
namespace glm{
|
||||
namespace detail
|
||||
{
|
||||
#ifdef GLM_COMPILER_VC
|
||||
#if GLM_COMPILER & GLM_COMPILER_VC
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4324) // structure was padded due to alignment specifier
|
||||
#endif
|
||||
@ -21,9 +21,10 @@ namespace detail
|
||||
template<> GLM_ALIGNED_STRUCT(16) aligned<16>{};
|
||||
template<> GLM_ALIGNED_STRUCT(32) aligned<32>{};
|
||||
template<> GLM_ALIGNED_STRUCT(64) aligned<64>{};
|
||||
#ifdef GLM_COMPILER_VC
|
||||
#if GLM_COMPILER & GLM_COMPILER_VC
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
template <typename T, std::size_t size, bool aligned>
|
||||
struct storage
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user