33 extern int posix_memalign(
void **__memptr,
size_t __alignment,
size_t __size);
39 extern "C" int posix_memalign(
void **__memptr,
size_t __alignment,
size_t __size);
43 #if !(defined(_WIN32) && defined(_mm_malloc))
44 static __inline__
void *
__attribute__((__always_inline__, __nodebug__,
46 _mm_malloc(
size_t __size,
size_t __align)
49 return malloc(__size);
52 if (!(__align & (__align - 1)) && __align <
sizeof(
void *))
53 __align =
sizeof(
void *);
56 #if defined(__MINGW32__)
57 __mallocedMemory = __mingw_aligned_malloc(__size, __align);
59 __mallocedMemory = _aligned_malloc(__size, __align);
int posix_memalign(void **__memptr, size_t __alignment, size_t __size)
static __inline__ void size_t __align
static __inline__ void * __attribute__((__always_inline__, __nodebug__, __malloc__)) _mm_malloc(size_t __size