diff options
| author | Paul Eggert | 2016-02-04 08:38:48 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-02-04 08:40:12 -0800 |
| commit | 0815944ac4a190d1402079453b99d00fcc26dc25 (patch) | |
| tree | 4fc3331f2e231081eade251085c7c1ea043e2370 /src/alloc.c | |
| parent | 1f5eeb7be4ac31986baae6abc279b1685ad57a5b (diff) | |
| download | emacs-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.c | 19 |
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. */ | ||
| 1133 | void *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 |
| 1145 | static void * | 1136 | static void * |
| 1146 | aligned_alloc (size_t alignment, size_t size) | 1137 | aligned_alloc (size_t alignment, size_t size) |