Changeset 2316525 for benchmark/ctxswitch/cfa_gen.cfa
- Timestamp:
- Jan 19, 2020, 4:16:27 PM (3 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- f090750
- Parents:
- 9e63a2b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/ctxswitch/cfa_gen.cfa
r9e63a2b r2316525 3 3 typedef struct { 4 4 void * next; 5 } GreatSuspender;5 } C; 6 6 7 void comain( GreatSuspender * this) {8 if ( __builtin_expect( this->next != 0, 1) ) goto *(this->next);9 this->next = &&s1;7 void comain( C * c ) { 8 if ( __builtin_expect(c->next != 0, 1) ) goto *(c->next); 9 c->next = &&s1; 10 10 for () { 11 11 return; … … 16 16 int main( int argc, char * argv[] ) { 17 17 BENCH_START() 18 GreatSuspender s= { 0 };18 C c = { 0 }; 19 19 BENCH( 20 for ( i;times ) {21 comain( & s);20 for ( times ) { 21 comain( &c ); 22 22 }, 23 23 result
Note: See TracChangeset
for help on using the changeset viewer.