Skip to content
Snippets Groups Projects
Commit a185c78d authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

lib/Headers/mm_malloc.h: Use __mingw_aligned_malloc() in _mm_malloc() on mingw.

By default, mingw does not have _mm_alloc() nor _aligned_malloc().

llvm-svn: 135388
parent 6121eb34
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,9 @@ _mm_malloc(size_t size, size_t align)
align = sizeof(void *);
void *mallocedMemory;
#ifdef _WIN32
#if defined(__MINGW32__)
mallocedMemory = __mingw_aligned_malloc(size, align);
#elif defined(_WIN32)
mallocedMemory = _aligned_malloc(size, align);
#else
if (posix_memalign(&mallocedMemory, align, size))
......
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