diff options
author | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2010-10-24 16:07:43 +0200 |
---|---|---|
committer | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2010-10-24 16:07:43 +0200 |
commit | 32b0747e3385c6c44f4c1f5beca063d89006453d (patch) | |
tree | d4e286f356b31f3931f7a2455de9b2a8a0c9960c /indra/llmath/llsimdmath.h | |
parent | d40db3d8e19fdcc024ca08e901d542bf9c552458 (diff) | |
parent | e2049c332b9b834e843249c1ae0ba8542491940f (diff) |
CTS-323: (part 2 of 2) Don't cast pointers to U32
Diffstat (limited to 'indra/llmath/llsimdmath.h')
-rw-r--r-- | indra/llmath/llsimdmath.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llmath/llsimdmath.h b/indra/llmath/llsimdmath.h index 9377bfdb53..1be1b7a55f 100644 --- a/indra/llmath/llsimdmath.h +++ b/indra/llmath/llsimdmath.h @@ -41,16 +41,18 @@ #error SSE2 not enabled. LLVector4a and related class will not compile. #endif +#include <stdint.h> + template <typename T> T* LL_NEXT_ALIGNED_ADDRESS(T* address) { return reinterpret_cast<T*>( - (reinterpret_cast<U32>(address) + 0xF) & ~0xF); + (reinterpret_cast<uintptr_t>(address) + 0xF) & ~0xF); } template <typename T> T* LL_NEXT_ALIGNED_ADDRESS_64(T* address) { return reinterpret_cast<T*>( - (reinterpret_cast<U32>(address) + 0x3F) & ~0x3F); + (reinterpret_cast<uintptr_t>(address) + 0x3F) & ~0x3F); } #if LL_LINUX || LL_DARWIN |