aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2016-02-04 08:38:48 -0800
committerPaul Eggert2016-02-04 08:40:12 -0800
commit0815944ac4a190d1402079453b99d00fcc26dc25 (patch)
tree4fc3331f2e231081eade251085c7c1ea043e2370 /src/alloc.c
parent1f5eeb7be4ac31986baae6abc279b1685ad57a5b (diff)
downloademacs-0815944ac4a190d1402079453b99d00fcc26dc25.tar.gz
emacs-0815944ac4a190d1402079453b99d00fcc26dc25.zip
Simplify USE_ALIGNED_ALLOC
* src/alloc.c (USE_ALIGNED_ALLOC): Simplify, now that we’ve merged in the emacs-25 changes. Omit no-longer-needed decl for aligned_alloc.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/alloc.c b/src/alloc.c
index f0e9f208ca3..ca86a84b06d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1126,21 +1126,12 @@ lisp_free (void *block)
1126 unexmacosx.c, so don't use it on Darwin. */ 1126 unexmacosx.c, so don't use it on Darwin. */
1127 1127
1128#if ! ADDRESS_SANITIZER && !defined DARWIN_OS 1128#if ! ADDRESS_SANITIZER && !defined DARWIN_OS
1129# if !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC && !defined HYBRID_MALLOC 1129# if (defined HAVE_ALIGNED_ALLOC \
1130 || (defined HYBRID_MALLOC \
1131 ? defined HAVE_POSIX_MEMALIGN \
1132 : !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC))
1130# define USE_ALIGNED_ALLOC 1 1133# define USE_ALIGNED_ALLOC 1
1131# ifndef HAVE_ALIGNED_ALLOC 1134# elif !defined HYBRID_MALLOC && defined HAVE_POSIX_MEMALIGN
1132/* Defined in gmalloc.c. */
1133void *aligned_alloc (size_t, size_t);
1134# endif
1135# elif defined HYBRID_MALLOC
1136# if defined HAVE_ALIGNED_ALLOC || defined HAVE_POSIX_MEMALIGN
1137# define USE_ALIGNED_ALLOC 1
1138# endif
1139# elif !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC
1140# define USE_ALIGNED_ALLOC 1
1141# elif defined HAVE_ALIGNED_ALLOC
1142# define USE_ALIGNED_ALLOC 1
1143# elif defined HAVE_POSIX_MEMALIGN
1144# define USE_ALIGNED_ALLOC 1 1135# define USE_ALIGNED_ALLOC 1
1145static void * 1136static void *
1146aligned_alloc (size_t alignment, size_t size) 1137aligned_alloc (size_t alignment, size_t size)