...
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user