| 60 | #endif |
| 61 | |
| 62 | void* 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 | |
| 72 | void fastFree(void* ptr) |
| 73 | { |
no test coverage detected