diff options
Diffstat (limited to 'all_pairs/source/audiobeam/audiobeam.c')
-rw-r--r-- | all_pairs/source/audiobeam/audiobeam.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/all_pairs/source/audiobeam/audiobeam.c b/all_pairs/source/audiobeam/audiobeam.c index 50ebfff..7d89f06 100644 --- a/all_pairs/source/audiobeam/audiobeam.c +++ b/all_pairs/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 | ||
579 | int main( int argc, char **argv ) | 581 | int 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 | } |