Blame SOURCES/glm-0.9.6.1-bigendian.patch
|
|
cd8460 |
diff -up glm/glm/detail/func_integer.inl.befix glm/glm/detail/func_integer.inl
|
|
|
cd8460 |
--- glm/glm/detail/func_integer.inl.befix 2015-01-28 08:44:30.468627717 +0100
|
|
|
cd8460 |
+++ glm/glm/detail/func_integer.inl 2015-01-28 08:46:19.990024091 +0100
|
|
|
cd8460 |
@@ -248,10 +248,8 @@ namespace detail
|
|
|
cd8460 |
GLM_STATIC_ASSERT(sizeof(uint) == sizeof(uint32), "uint and uint32 size mismatch");
|
|
|
cd8460 |
|
|
|
cd8460 |
uint64 Value64 = static_cast<uint64>(x) * static_cast<uint64>(y);
|
|
|
cd8460 |
- uint32* PointerMSB = (reinterpret_cast<uint32*>(&Value64) + 1);
|
|
|
cd8460 |
- msb = *PointerMSB;
|
|
|
cd8460 |
- uint32* PointerLSB = (reinterpret_cast<uint32*>(&Value64) + 0);
|
|
|
cd8460 |
- lsb = *PointerLSB;
|
|
|
cd8460 |
+ msb = Value64 >> 32;
|
|
|
cd8460 |
+ lsb = Value64;
|
|
|
cd8460 |
}
|
|
|
cd8460 |
|
|
|
cd8460 |
template <precision P, template <typename, precision> class vecType>
|
|
|
cd8460 |
@@ -270,10 +268,8 @@ namespace detail
|
|
|
cd8460 |
GLM_STATIC_ASSERT(sizeof(int) == sizeof(int32), "int and int32 size mismatch");
|
|
|
cd8460 |
|
|
|
cd8460 |
int64 Value64 = static_cast<int64>(x) * static_cast<int64>(y);
|
|
|
cd8460 |
- int32* PointerMSB = (reinterpret_cast<int32*>(&Value64) + 1);
|
|
|
cd8460 |
- msb = *PointerMSB;
|
|
|
cd8460 |
- int32* PointerLSB = (reinterpret_cast<int32*>(&Value64));
|
|
|
cd8460 |
- lsb = *PointerLSB;
|
|
|
cd8460 |
+ msb = Value64 >> 32;
|
|
|
cd8460 |
+ lsb = Value64;
|
|
|
cd8460 |
}
|
|
|
cd8460 |
|
|
|
cd8460 |
template <precision P, template <typename, precision> class vecType>
|