From e9560dbece41136ffedd786723717efaa2a3a9fd Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Tue, 20 Oct 2020 16:30:44 -0400 Subject: 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 --- baseline/source/audiobeam/audiobeamlibmalloc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'baseline/source/audiobeam/audiobeamlibmalloc.c') 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 ) /* Get a 4-byte address for alignment purposes */ audiobeam_freeHeapPos += ( ( numberOfBytes + 4 ) & ( unsigned int )0xfffffffc ); return currentPos; -} \ No newline at end of file +} + +void audiobeam_free_all( void ) +{ + audiobeam_freeHeapPos = 0; +} -- cgit v1.2.2