diff options
Diffstat (limited to 'r23/sources/android/support/src/posix_memalign.cpp')
-rw-r--r-- | r23/sources/android/support/src/posix_memalign.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/r23/sources/android/support/src/posix_memalign.cpp b/r23/sources/android/support/src/posix_memalign.cpp deleted file mode 100644 index cf7abbbf5..000000000 --- a/r23/sources/android/support/src/posix_memalign.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include <errno.h> -#include <malloc.h> -#include <stdlib.h> - -int posix_memalign(void** memptr, size_t alignment, size_t size) { - if ((alignment & (alignment - 1)) != 0 || alignment == 0) { - return EINVAL; - } - - if (alignment % sizeof(void*) != 0) { - return EINVAL; - } - - *memptr = memalign(alignment, size); - if (*memptr == NULL) { - return errno; - } - - return 0; -} |