Use memalign instead of posix_memalign in GCC x86 mm_malloc.h

posix_memalign doesn't exist in NDK.  Code inludes ?mmintrin.h
which in turn includes mm_malloc.h may fail to link

For AOSP platform build which uses the same compiler, add
-DHAVE_POSIX_MEMALIGN to restore the original behavior.

Other than non-zero return value which _mm_alloc already ignores, both
paths are functioanlly identical (under the hood dlmalloc.c in 32-bit
ensure alignment is at least 16-byte)

Change-Id: I723fdfe6afe4bdccf73e88780d65e17ce2ddafb5
1 file changed