MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / operator new

Function operator new

3rdparty/asyncplusplus/include/async++/task_base.h:77–80  ·  view source on GitHub ↗

Use aligned memory allocation

Source from the content-addressed store, hash-verified

75
76 // Use aligned memory allocation
77 static void* operator new(std::size_t size)
78 {
79 return aligned_alloc(size, LIBASYNC_CACHELINE_SIZE);
80 }
81 static void operator delete(void* ptr)
82 {
83 aligned_free(ptr);

Callers

nothing calls this directly

Calls 1

aligned_allocFunction · 0.85

Tested by

no test coverage detected