diff options
| author | leochanj <jbakita@cs.unc.edu> | 2020-10-20 21:46:20 -0400 |
|---|---|---|
| committer | leochanj <jbakita@cs.unc.edu> | 2020-10-20 21:46:20 -0400 |
| commit | e2b50015cebdfba68699abd6e8575e38230f5a78 (patch) | |
| tree | 8bc28e082ad58e5fec07de81fd7c7f9bd9db2686 /all_pairs/source/audiobeam/audiobeamlibmalloc.c | |
| parent | 79f30887129145e15e5172e36a7d7602859fc932 (diff) | |
| parent | dd606a16e840880e7617b140f6083af8ea83b6b7 (diff) | |
Merge branch 'rtas20-wip' into sd-vbs
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 | } | ||
