summaryrefslogtreecommitdiff
path: root/indra/llmath/llvector4a.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-12-21 17:02:47 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-12-21 17:02:47 -0500
commitc8682722ad6b889b13ce288c417cb6b82ed273ac (patch)
tree234f76107be807c1bd36d8c1664364ee17421507 /indra/llmath/llvector4a.cpp
parent461241a6300dcf29b06b2403c824fefd1d91a8fd (diff)
SH-2789 WIP - aligned alloc and realloc
Diffstat (limited to 'indra/llmath/llvector4a.cpp')
-rwxr-xr-xindra/llmath/llvector4a.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llmath/llvector4a.cpp b/indra/llmath/llvector4a.cpp
index 7602ef0cb2..480ccf4ed9 100755
--- a/indra/llmath/llvector4a.cpp
+++ b/indra/llmath/llvector4a.cpp
@@ -41,14 +41,15 @@ extern const LLVector4a LL_V4A_EPSILON = reinterpret_cast<const LLVector4a&> ( F
/*static */void LLVector4a::memcpyNonAliased16(F32* __restrict dst, const F32* __restrict src, size_t bytes)
{
- memcpy((void*)dst,(const void*)src,bytes);
-#if 0
+// memcpy((void*)dst,(const void*)src,bytes);
+#if 1
assert(src != NULL);
assert(dst != NULL);
assert(bytes > 0);
assert((bytes % sizeof(F32))== 0);
ll_assert_aligned(src,16);
ll_assert_aligned(dst,16);
+ assert(bytes%16==0);
F32* end = dst + (bytes / sizeof(F32) );