avoid duplicate #define

This commit is contained in:
Cedric Roux
2016-03-25 22:26:40 +01:00
parent a56b0a1f70
commit 3f8c74caba
5 changed files with 19 additions and 6 deletions
+7 -1
View File
@@ -41,7 +41,13 @@
#if !defined (msg)
# define msg(aRGS...) LOG_D(PHY, ##aRGS)
#endif
#define malloc16(x) memalign(16,x) //malloc(x)
#ifndef malloc16
# ifdef __AVX2__
# define malloc16(x) memalign(32,x)
# else
# define malloc16(x) memalign(16,x)
# endif
#endif
#define free16(y,x) free(y)
#define bigmalloc malloc
#define bigmalloc16 malloc16