diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2010-12-17 16:06:32 -0500 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2010-12-17 16:06:32 -0500 |
commit | 089f9d6d370daed06c3b69d8567f65fc97300dc0 (patch) | |
tree | d38c25c10463b58a6ad03ad5f11e4acfc293a60f /indra/llmath/llsimdmath.h | |
parent | ed25bfc431bd209cb78890842ac8fabf5d6ba060 (diff) | |
parent | 8edd7e94b1f294fe71e9c0d0b5bfa1b7ef7e11cc (diff) |
merging in fix for CTS-323 / SH-464
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 d6debce2d7..b6ac5190a7 100644 --- a/indra/llmath/llsimdmath.h +++ b/indra/llmath/llsimdmath.h @@ -35,16 +35,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 |