summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-12-20 12:15:29 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-12-20 12:15:29 -0500
commit461241a6300dcf29b06b2403c824fefd1d91a8fd (patch)
tree6a06f9df8e2befece6b184c5198c567ccb7daa38
parent9c2e0d84f84fe7c38b1e9f7a127efc540b43f5aa (diff)
SH-2789 WIP - fixes for 16-byte alignment
-rwxr-xr-xindra/llmath/llvolumeoctree.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/llmath/llvolumeoctree.h b/indra/llmath/llvolumeoctree.h
index 6de7b223be..dac97b14b5 100755
--- a/indra/llmath/llvolumeoctree.h
+++ b/indra/llmath/llvolumeoctree.h
@@ -37,6 +37,16 @@
class LLVolumeTriangle : public LLRefCount
{
public:
+ void* operator new(size_t size)
+ {
+ return ll_aligned_malloc_16(size);
+ }
+
+ void operator delete(void* ptr)
+ {
+ ll_aligned_free_16(ptr);
+ }
+
LLVolumeTriangle()
{
@@ -58,7 +68,7 @@ public:
}
- LLVector4a mPositionGroup;
+ LL_ALIGN_16(LLVector4a mPositionGroup);
const LLVector4a* mV[3];
U16 mIndex[3];