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/huff_dec/huff_dec.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'baseline/source/huff_dec/huff_dec.c') diff --git a/baseline/source/huff_dec/huff_dec.c b/baseline/source/huff_dec/huff_dec.c index 58b40d3..e0ebc19 100644 --- a/baseline/source/huff_dec/huff_dec.c +++ b/baseline/source/huff_dec/huff_dec.c @@ -144,6 +144,8 @@ void huff_dec_init( void ) { huff_dec_input_pos = 0; huff_dec_output_pos = 0; + huff_dec_byte_nb_to_read = 0; + huff_dec_val_to_read = 0; } @@ -379,15 +381,11 @@ void _Pragma( "entrypoint" ) huff_dec_main( void ) int main( int argc, char **argv ) { - //SET_UP - int jobsComplete; - int maxJobs=5; - for (jobsComplete=0; jobsComplete Date: Tue, 20 Oct 2020 17:10:14 -0400 Subject: Whitespace fixes for TACLeBench and copyright update in extra.h Also move run_all_dis.sh up a directory in preperation for further changes. --- baseline/source/huff_dec/huff_dec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'baseline/source/huff_dec/huff_dec.c') diff --git a/baseline/source/huff_dec/huff_dec.c b/baseline/source/huff_dec/huff_dec.c index e0ebc19..8ebf2f7 100644 --- a/baseline/source/huff_dec/huff_dec.c +++ b/baseline/source/huff_dec/huff_dec.c @@ -381,11 +381,11 @@ void _Pragma( "entrypoint" ) huff_dec_main( void ) int main( int argc, char **argv ) { - SET_UP - for_each_job { - huff_dec_init(); - huff_dec_main(); - } - WRITE_TO_FILE + SET_UP + for_each_job { + huff_dec_init(); + huff_dec_main(); + } + WRITE_TO_FILE return ( huff_dec_return() ); } -- cgit v1.2.2