* update from personal repo (including some significant fixes)

This commit is contained in:
Chris Cannam
2008-11-26 22:31:55 +00:00
parent 4d875a5ef4
commit 0da1cfd87a
4 changed files with 21 additions and 4 deletions

View File

@@ -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));