Skip to content
Snippets Groups Projects
Commit 8f7bb8f6 authored by David Parks's avatar David Parks
Browse files

Port over Simon's fix for alignment test

parent 3a36e3c6
No related branches found
No related tags found
No related merge requests found
......@@ -34,16 +34,6 @@
#include "../llsimdmath.h"
#include "../llvector4a.h"
void* operator new(size_t size)
{
return ll_aligned_malloc_16(size);
}
void operator delete(void *p)
{
ll_aligned_free_16(p);
}
namespace tut
{
......@@ -59,6 +49,27 @@ tut::alignment_test_t tut_alignment_test("LLAlignment");
LL_ALIGN_PREFIX(16)
class MyVector4a
{
public:
void* operator new(size_t size)
{
return ll_aligned_malloc_16(size);
}
void operator delete(void *p)
{
ll_aligned_free_16(p);
}
void* operator new[](size_t count)
{ // try to allocate count bytes for an array
return ll_aligned_malloc_16(count);
}
void operator delete[](void *p)
{
ll_aligned_free_16(p);
}
LLQuad mQ;
} LL_ALIGN_POSTFIX(16);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment