Changeset b4107c8 for benchmark/ctxswitch/cfa_gen.cfa
- Timestamp:
- Jan 7, 2020, 3:50:56 PM (2 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
- Children:
- 580c11b
- Parents:
- 846c026
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/ctxswitch/cfa_gen.cfa
r846c026 rb4107c8 6 6 7 7 void comain( GreatSuspender * this ) { 8 9 8 if ( __builtin_expect(this->next != 0, 1) ) goto *(this->next); 9 this->next = &&s1; 10 10 for () { 11 11 return; 12 12 s1: ; 13 13 } 14 14 } 15 15 16 int main( int argc, char* argv[]) {17 GreatSuspender s = { 0 }; 18 16 int main( int argc, char * argv[] ) { 17 BENCH_START() 18 GreatSuspender s = { 0 }; 19 19 BENCH( 20 for ( i; n) {20 for ( i; times ) { 21 21 comain( &s ); 22 22 }, 23 23 result 24 24 ) 25 printf( "%g\n", result ); 26 } 25 27 26 printf("%g\n", result); 27 } 28 // Local Variables: // 29 // tab-width: 4 // 30 // End: //
Note: See TracChangeset
for help on using the changeset viewer.