Changeset adb6b30f for tests/coroutine/fibonacci.c
- Timestamp:
- Aug 16, 2018, 9:35:06 AM (7 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 0c1d240
- Parents:
- 3de9135
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/coroutine/fibonacci.c
r3de9135 radb6b30f 11 11 // Created On : Thu Jun 8 07:29:37 2017 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Fri Apr 27 08:55:31201814 // Update Count : 1913 // Last Modified On : Thu Aug 16 08:18:16 2018 14 // Update Count : 20 15 15 // 16 16 … … 26 26 fn = 1; fn2 = fn1; fn1 = fn; // 2nd case 27 27 suspend(); // restart last resume 28 for ( ;;) {28 for () { 29 29 fn = fn1 + fn2; fn2 = fn1; fn1 = fn; // general case 30 30 suspend(); // restart last resume
Note: See TracChangeset
for help on using the changeset viewer.