Dávid Bolvanský 2c91754a13 [Clang] Add attributes alloc_size and alloc_align to mm_malloc
LLVM optimizes source codes with mm_malloc better, especially due to alignment info.

alloc align https://clang.llvm.org/docs/AttributeReference.html#alloc-align
alloc size https://clang.llvm.org/docs/AttributeReference.html#alloc-size

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D117091
2022-02-17 19:59:18 +01:00

8 lines
202 B
C

#if defined(__MINGW32__)
void *__mingw_aligned_malloc(size_t, size_t);
void __mingw_aligned_free(void *);
#elif defined(_WIN32)
void *_aligned_malloc(size_t, size_t);
void _aligned_free(void *);
#endif