#endif /* !__APPLE__, !_WIN32 */
#endif /* !_WIN32 */
+#include <cstdlib>
#include <iostream>
#include <stdlib.h>
if (ptr) free((void *)ptr);
void *allocated;
#ifndef _WIN32
+#ifndef __APPLE__
if (!posix_memalign(&allocated, 16, count * sizeof(float)))
+#endif
#endif
allocated = malloc(count * sizeof(float));
for (int i = 0; i < count; ++i) ((float *)allocated)[i] = 0.f;
if (ptr) free((void *)ptr);
void *allocated;
#ifndef _WIN32
+#ifndef __APPLE__
if (!posix_memalign(&allocated, 16, count * sizeof(double)))
+#endif
#endif
allocated = malloc(count * sizeof(double));
for (int i = 0; i < count; ++i) ((double *)allocated)[i] = 0.f;