summaryrefslogtreecommitdiffstats
path: root/baseline/source/audiobeam/audiobeam.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/audiobeam/audiobeam.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/audiobeam/audiobeam.c')
-rw-r--r--baseline/source/audiobeam/audiobeam.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/baseline/source/audiobeam/audiobeam.c b/baseline/source/audiobeam/audiobeam.c
index 50ebfff..7d89f06 100644
--- a/baseline/source/audiobeam/audiobeam.c
+++ b/baseline/source/audiobeam/audiobeam.c
@@ -104,6 +104,8 @@ void audiobeam_init()
104 unsigned int i; 104 unsigned int i;
105 unsigned char *p; 105 unsigned char *p;
106 volatile char bitmask = 0; 106 volatile char bitmask = 0;
107 // Reset heap
108 audiobeam_free_all();
107 109
108 /* 110 /*
109 Apply volatile XOR-bitmask to entire input array. 111 Apply volatile XOR-bitmask to entire input array.
@@ -578,16 +580,12 @@ void _Pragma( "entrypoint" ) audiobeam_main( void )
578 580
579int main( int argc, char **argv ) 581int main( int argc, char **argv )
580{ 582{
581 //SET_UP 583 SET_UP
582 int jobsComplete; 584 for_each_job {
583 int maxJobs=100;
584 for (jobsComplete=0; jobsComplete<maxJobs; jobsComplete++){
585 // START_LOOP
586 audiobeam_init(); 585 audiobeam_init();
587 audiobeam_main(); 586 audiobeam_main();
588 // STOP_LOOP
589 } 587 }
590 //WRITE_TO_FILE 588 WRITE_TO_FILE
591 589
592 return ( audiobeam_return() ); 590 return ( audiobeam_return() );
593} 591}