This commit is contained in:
Chris Cannam
2008-07-10 11:09:26 +00:00
parent dd45a34e48
commit aef181c3ed

View File

@@ -108,7 +108,9 @@ float *allocFloat(float *ptr, int count)
if (ptr) free((void *)ptr); if (ptr) free((void *)ptr);
void *allocated; void *allocated;
#ifndef _WIN32 #ifndef _WIN32
#ifndef __APPLE__
if (!posix_memalign(&allocated, 16, count * sizeof(float))) if (!posix_memalign(&allocated, 16, count * sizeof(float)))
#endif
#endif #endif
allocated = malloc(count * sizeof(float)); allocated = malloc(count * sizeof(float));
for (int i = 0; i < count; ++i) ((float *)allocated)[i] = 0.f; for (int i = 0; i < count; ++i) ((float *)allocated)[i] = 0.f;