MCPcopy Create free account
hub / github.com/catboost/catboost / memalign

Function memalign

library/cpp/lfalloc/lf_allocX64.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65extern "C" void* memalign(size_t alignment, size_t size) {
66 void* ptr;
67 int res = LFPosixMemalign(&ptr, alignment, size);
68 return res ? nullptr : ptr;
69}
70
71extern "C" void* aligned_alloc(size_t alignment, size_t size) {
72 return memalign(alignment, size);

Callers 2

aligned_allocFunction · 0.70
__libc_memalignFunction · 0.70

Calls 1

LFPosixMemalignFunction · 0.85

Tested by

no test coverage detected