Here is the code I normally use to get aligned memory with Visual Studio and GCC
inline void* aligned_malloc(size_t size, size_t align) { void *result;
Here are my 2 cents:
temp = new unsigned char*[num]; AlignedBuffers = new unsigned char*[num]; for (int i = 0; i((reinterpret_cast (temp[i% num]) + 15) & ~15);// 16 bit alignment in preperation for SSE }