From 38c03d5b0c31849ff7a764e0f147ce6e545fc911 Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Mon, 3 May 2010 14:47:17 +0200 Subject: [PATCH] SSE fix for 32-bit platforms Dynamic allocated memory is not aligned to 16 bytes, even if SSE vectors are involved. Changed operator new to posix_memalign() --- tools/array_ops.cpp | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/tools/array_ops.cpp b/tools/array_ops.cpp index 01c9c48..649953e 100644 --- a/tools/array_ops.cpp +++ b/tools/array_ops.cpp @@ -130,11 +130,14 @@ void Delete3DArray_v4sf(f4vector*** array, const unsigned int* numLines) { for (pos[1]=0;pos[1]