diff options
| author | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 21:55:11 -0400 |
|---|---|---|
| committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 21:55:11 -0400 |
| commit | e2d933df44b7b387b41c8c7805393ad3857c4448 (patch) | |
| tree | 35cbeee7b13ff92e3cb09e2bef5128a558ec39f1 /baseline/source/audiobeam/audiobeamlibmalloc.c | |
| parent | a32f220f06cc463e5b56e7fa0b1b1334d94d08f3 (diff) | |
| parent | e2b50015cebdfba68699abd6e8575e38230f5a78 (diff) | |
Merge branch 'sd-vbs' of ssh://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks into sd-vbs
Diffstat (limited to 'baseline/source/audiobeam/audiobeamlibmalloc.c')
| -rw-r--r-- | baseline/source/audiobeam/audiobeamlibmalloc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/baseline/source/audiobeam/audiobeamlibmalloc.c b/baseline/source/audiobeam/audiobeamlibmalloc.c index 50c3073..a81b634 100644 --- a/baseline/source/audiobeam/audiobeamlibmalloc.c +++ b/baseline/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 | } | ||
