summaryrefslogtreecommitdiff
path: root/indra/llmath/llsimdmath.h
diff options
context:
space:
mode:
authorNyx (Neal Orman) <nyx@lindenlab.com>2010-12-17 16:19:15 -0500
committerNyx (Neal Orman) <nyx@lindenlab.com>2010-12-17 16:19:15 -0500
commitfa17e848a63c6eb2837ad064ae1f4d85e117b702 (patch)
treeb0f6f40f31d23bdbba4b18201fa7fcdd01ef6914 /indra/llmath/llsimdmath.h
parentac7fad4cd0beeee670be40fae1956e5f22a0f17d (diff)
parent089f9d6d370daed06c3b69d8567f65fc97300dc0 (diff)
Automated merge with https://hg.secondlife.com/mesh-development
Diffstat (limited to 'indra/llmath/llsimdmath.h')
-rw-r--r--indra/llmath/llsimdmath.h6
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