Use <xmmintrin.h> for WIN32, else use <mm_malloc.h>

This commit is contained in:
Francois-Olivier Devaux
2007-08-21 12:57:39 +00:00
parent 07be749bf2
commit 1d02a8b595
2 changed files with 5 additions and 1 deletions

View File

@@ -61,7 +61,11 @@ Allocate memory aligned to a 16 byte boundry
@param size Bytes to allocate
@return Returns a void pointer to the allocated space, or NULL if there is insufficient memory available
*/
#ifdef WIN32
#include <xmmintrin.h>
#else
#include <mm_malloc.h>
#endif
#define opj_aligned_malloc(size) _mm_malloc(size, 16)
#define opj_aligned_free(m) _mm_free(m)