Changes in benchmark/ctxswitch/cfa_gen.cfa [2316525:b4107c8]
- File:
-
- 1 edited
-
benchmark/ctxswitch/cfa_gen.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/ctxswitch/cfa_gen.cfa
r2316525 rb4107c8 3 3 typedef struct { 4 4 void * next; 5 } C;5 } GreatSuspender; 6 6 7 void comain( C * c) {8 if ( __builtin_expect( c->next != 0, 1) ) goto *(c->next);9 c->next = &&s1;7 void comain( GreatSuspender * this ) { 8 if ( __builtin_expect(this->next != 0, 1) ) goto *(this->next); 9 this->next = &&s1; 10 10 for () { 11 11 return; … … 16 16 int main( int argc, char * argv[] ) { 17 17 BENCH_START() 18 C c= { 0 };18 GreatSuspender s = { 0 }; 19 19 BENCH( 20 for ( times ) {21 comain( & c);20 for ( i; times ) { 21 comain( &s ); 22 22 }, 23 23 result
Note:
See TracChangeset
for help on using the changeset viewer.