forked from len0rd/rockbox
malloc(), best-fit for big blocks, small blocks treated separately, all
details in THOUGHTS. No headers and stuff added yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@569 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e14e13df5c
commit
1dd21edacf
12 changed files with 2110 additions and 0 deletions
13
firmware/test/malloc/dmalloc.h
Normal file
13
firmware/test/malloc/dmalloc.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
void *dmalloc(size_t);
|
||||
void dfree(void *);
|
||||
void *drealloc(void *, size_t);
|
||||
|
||||
#define malloc(x) dmalloc(x)
|
||||
#define free(x) dfree(x)
|
||||
#define realloc(x,y) drealloc(x,y)
|
||||
#define calloc(x,y) dcalloc(x,y)
|
||||
|
||||
|
||||
/* use this to intialize the internals of the dmalloc engine */
|
||||
void dmalloc_initialize(void);
|
||||
Loading…
Add table
Add a link
Reference in a new issue