diff options
author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-20 16:30:44 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-20 16:30:44 -0400 |
commit | e9560dbece41136ffedd786723717efaa2a3a9fd (patch) | |
tree | bbb5cec16daa6f194a57f49cb0532b4eeaa91a41 /baseline/source/audiobeam/audiobeamlibmalloc.c | |
parent | 2e4b1efc7e46b1278e162cb63632546af8f3e0e9 (diff) |
Fix the 4 TACLeBench members that would not loop before
- anagram, audiobeam: Reset heap in _init() function
- g723_enc: Don't use static local variables
- huff_dec: Reset all global state in _init() function
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 | } | ||