diff options
Diffstat (limited to 'all_pairs/source/audiobeam/audiobeamlibmalloc.c')
| -rw-r--r-- | all_pairs/source/audiobeam/audiobeamlibmalloc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/all_pairs/source/audiobeam/audiobeamlibmalloc.c b/all_pairs/source/audiobeam/audiobeamlibmalloc.c index 50c3073..a81b634 100644 --- a/all_pairs/source/audiobeam/audiobeamlibmalloc.c +++ b/all_pairs/source/audiobeam/audiobeamlibmalloc.c | |||
| @@ -11,4 +11,9 @@ void *audiobeam_malloc( unsigned int numberOfBytes ) | |||
| 11 | /* Get a 4-byte address for alignment purposes */ | 11 | /* Get a 4-byte address for alignment purposes */ |
| 12 | audiobeam_freeHeapPos += ( ( numberOfBytes + 4 ) & ( unsigned int )0xfffffffc ); | 12 | audiobeam_freeHeapPos += ( ( numberOfBytes + 4 ) & ( unsigned int )0xfffffffc ); |
| 13 | return currentPos; | 13 | return currentPos; |
| 14 | } \ No newline at end of file | 14 | } |
| 15 | |||
| 16 | void audiobeam_free_all( void ) | ||
| 17 | { | ||
| 18 | audiobeam_freeHeapPos = 0; | ||
| 19 | } | ||
