aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/malloc/malloc.h
blob: 8e3f03ccb448eb2ac1850f058bfccf616f566705 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <cstddef>


////////////////////////////////////////////////////////////////////////////////

#if defined(__ANDROID__)
extern "C" size_t malloc_usable_size(const void* ptr);
#else
extern "C" size_t malloc_usable_size(void* ptr) noexcept;
#endif

extern "C" size_t nallocx(size_t size, int flags) noexcept;

void* aligned_malloc(size_t size, size_t alignment);

////////////////////////////////////////////////////////////////////////////////