#include "../bench.h" typedef struct { void * next; } C; void comain( C * c ) { if ( __builtin_expect(c->next != 0, 1) ) goto *(c->next); c->next = &&s1; for () { return; s1: ; } } int main( int argc, char * argv[] ) { BENCH_START() C c = { 0 }; BENCH( for ( times ) { comain( &c ); }, result ) printf( "%g\n", result ); } // Local Variables: // // tab-width: 4 // // End: //