summaryrefslogtreecommitdiffstats
path: root/baseline/source/huff_dec/huff_dec.c
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2020-10-20 16:30:44 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-10-20 16:30:44 -0400
commite9560dbece41136ffedd786723717efaa2a3a9fd (patch)
treebbb5cec16daa6f194a57f49cb0532b4eeaa91a41 /baseline/source/huff_dec/huff_dec.c
parent2e4b1efc7e46b1278e162cb63632546af8f3e0e9 (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/huff_dec/huff_dec.c')
-rw-r--r--baseline/source/huff_dec/huff_dec.c12
1 files changed, 5 insertions, 7 deletions
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 )
144{ 144{
145 huff_dec_input_pos = 0; 145 huff_dec_input_pos = 0;
146 huff_dec_output_pos = 0; 146 huff_dec_output_pos = 0;
147 huff_dec_byte_nb_to_read = 0;
148 huff_dec_val_to_read = 0;
147} 149}
148 150
149 151
@@ -379,15 +381,11 @@ void _Pragma( "entrypoint" ) huff_dec_main( void )
379 381
380int main( int argc, char **argv ) 382int main( int argc, char **argv )
381{ 383{
382 //SET_UP 384 SET_UP
383 int jobsComplete; 385 for_each_job {
384 int maxJobs=5;
385 for (jobsComplete=0; jobsComplete<maxJobs; jobsComplete++){
386 // START_LOOP
387 huff_dec_init(); 386 huff_dec_init();
388 huff_dec_main(); 387 huff_dec_main();
389 // STOP_LOOP
390 } 388 }
391 //WRITE_TO_FILE 389 WRITE_TO_FILE
392 return ( huff_dec_return() ); 390 return ( huff_dec_return() );
393} 391}