Optimizes the cache use for all the RAID computations.

This commit is contained in:
Andrea Mazzoleni 2013-09-05 22:29:58 +02:00
parent ed135e5912
commit 4f891087a2
8 changed files with 70 additions and 39 deletions

7
util.h
View file

@ -457,6 +457,13 @@ void* malloc_nofail(size_t size);
*/
void* malloc_nofail_align(size_t size, void** freeptr);
/**
* Safe aligned vector allocation.
* Returns a vector of "count" pointers, each one pointing to a block of the specified "size".
* If no memory is available, it aborts.
*/
unsigned char** malloc_nofail_vector_align(size_t count, size_t size, void** freeptr);
/**
* Safe strdup.
* If no memory is available, it aborts.