mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Windows CE does not provide an aligned_malloc function.
(transplanted from 9b418afff6b55842f0d996eea879eea7289081f9 )
This commit is contained in:
parent
85c40128e4
commit
26e9563baf
@ -204,7 +204,7 @@ inline void* aligned_malloc(size_t size)
|
|||||||
if(posix_memalign(&result, 16, size)) result = 0;
|
if(posix_memalign(&result, 16, size)) result = 0;
|
||||||
#elif EIGEN_HAS_MM_MALLOC
|
#elif EIGEN_HAS_MM_MALLOC
|
||||||
result = _mm_malloc(size, 16);
|
result = _mm_malloc(size, 16);
|
||||||
#elif (defined _MSC_VER)
|
#elif defined(_MSC_VER) && (!defined(_WIN32_WCE))
|
||||||
result = _aligned_malloc(size, 16);
|
result = _aligned_malloc(size, 16);
|
||||||
#else
|
#else
|
||||||
result = handmade_aligned_malloc(size);
|
result = handmade_aligned_malloc(size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user