void *ret;
if (al < sizeof (void *))
al = sizeof (void *);
-#ifdef HAVE__ALIGNED_MALLOC
- ret = _aligned_malloc (size, al);
-#elif defined(HAVE_MEMALIGN)
+#ifdef HAVE_MEMALIGN
{
extern void *memalign (size_t, size_t);
ret = memalign (al, size);
else
ret = NULL;
}
+#elif defined(HAVE__ALIGNED_MALLOC)
+ ret = _aligned_malloc (size, al);
#else
ret = NULL;
if ((al & (al - 1)) == 0 && size)
{
#ifdef GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC
free (ptr);
+#elif defined(HAVE__ALIGNED_MALLOC)
+ _aligned_free (ptr);
#else
if (ptr)
free (((void **) ptr)[-1]);
/* alloc.c */
#if defined(HAVE_ALIGNED_ALLOC) \
- || defined(HAVE__ALIGNED_MALLOC) \
|| defined(HAVE_POSIX_MEMALIGN) \
|| defined(HAVE_MEMALIGN)
/* Defined if gomp_aligned_alloc doesn't use fallback version