Changeset 122aecd for doc/generic_types/evaluation/cfa-bench.c
- Timestamp:
- Apr 7, 2017, 2:32:03 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3a48e283
- Parents:
- 4cfcf41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/cfa-bench.c
r4cfcf41 r122aecd 7 7 8 8 stack(int) s; 9 10 9 REPEAT_TIMED( "push_int", 11 10 push( &s, rand() ); 12 11 ) 12 13 stack(int) t; 14 TIMED( "copy_int", 15 t = s; 16 ) 17 18 TIMED( "clear_int", 19 clear( &s ); 20 ) 21 22 int sum; 23 REPEAT_TIMED( "pop_int", 24 sum += pop( &t ); 25 ) 13 26 }
Note: See TracChangeset
for help on using the changeset viewer.