* update from personal repo (including some significant fixes)
This commit is contained in:
@@ -110,7 +110,7 @@ float *allocFloat(float *ptr, int count)
|
||||
void *allocated;
|
||||
#ifndef _WIN32
|
||||
#ifndef __APPLE__
|
||||
if (!posix_memalign(&allocated, 16, count * sizeof(float)))
|
||||
if (posix_memalign(&allocated, 16, count * sizeof(float)))
|
||||
#endif
|
||||
#endif
|
||||
allocated = malloc(count * sizeof(float));
|
||||
@@ -134,7 +134,7 @@ double *allocDouble(double *ptr, int count)
|
||||
void *allocated;
|
||||
#ifndef _WIN32
|
||||
#ifndef __APPLE__
|
||||
if (!posix_memalign(&allocated, 16, count * sizeof(double)))
|
||||
if (posix_memalign(&allocated, 16, count * sizeof(double)))
|
||||
#endif
|
||||
#endif
|
||||
allocated = malloc(count * sizeof(double));
|
||||
|
||||
Reference in New Issue
Block a user