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

Function aligned_alloc

library/cpp/balloc/balloc.cpp:293–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293extern "C" void* aligned_alloc(size_t alignment, size_t size) {
294 void* ptr;
295 int res = posix_memalign(&ptr, alignment, size);
296 return res ? nullptr : ptr;
297}
298
299extern "C" void* memalign(size_t alignment, size_t size) {
300 return aligned_alloc(alignment, size);

Callers 1

memalignFunction · 0.70

Calls 1

posix_memalignFunction · 0.70

Tested by

no test coverage detected