diff options
author | daan <daanl@outlook.com> | 2021-12-17 13:23:24 -0800 |
---|---|---|
committer | daan <daanl@outlook.com> | 2021-12-17 13:23:24 -0800 |
commit | abbff9c0307d0f3ac1334fe1a45a34c402ca1531 (patch) | |
tree | 7186020a4ebc5199f850b0ae6399d8b4cec4676f /include/mimalloc-internal.h | |
parent | e6400bcc2797a419629e761056ee074a2b4f7f4d (diff) | |
parent | 89f583a69b86a06966fb07b4794b4046faa01fee (diff) |
merge from dev (MI_ALIGNED_MAX)
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r-- | include/mimalloc-internal.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h index e63ade7..8fa8caf 100644 --- a/include/mimalloc-internal.h +++ b/include/mimalloc-internal.h @@ -268,11 +268,6 @@ static inline size_t _mi_wsize_from_size(size_t size) { return (size + sizeof(uintptr_t) - 1) / sizeof(uintptr_t); } -// Does malloc satisfy the alignment constraints already? -static inline bool mi_malloc_satisfies_alignment(size_t alignment, size_t size) { - return (alignment == sizeof(void*) || (alignment == MI_MAX_ALIGN_SIZE && size > (MI_MAX_ALIGN_SIZE/2))); -} - // Overflow detecting multiply #if __has_builtin(__builtin_umul_overflow) || (defined(__GNUC__) && (__GNUC__ >= 5)) #include <limits.h> // UINT_MAX, ULONG_MAX |