MCPcopy Create free account
hub / github.com/creatale/node-dv / fastMalloc

Function fastMalloc

deps/opencv/modules/core/src/alloc.cpp:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60#endif
61
62void* fastMalloc( size_t size )
63{
64 uchar* udata = (uchar*)malloc(size + sizeof(void*) + CV_MALLOC_ALIGN);
65 if(!udata)
66 return OutOfMemoryError(size);
67 uchar** adata = alignPtr((uchar**)udata + 1, CV_MALLOC_ALIGN);
68 adata[-1] = udata;
69 return adata;
70}
71
72void fastFree(void* ptr)
73{

Callers 6

createMethod · 0.85
cvAllocFunction · 0.85
setSizeFunction · 0.85
createMethod · 0.85
PtrMethod · 0.85
allocateMethod · 0.85

Calls 9

OutOfMemoryErrorFunction · 0.85
alignPtrFunction · 0.85
SystemAllocFunction · 0.85
getFunction · 0.85
checkListFunction · 0.85
binMethod · 0.80
moveBlockToFreeListMethod · 0.80
allocMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected