| 49 | } |
| 50 | |
| 51 | static void fib(void * arg) { |
| 52 | int *p = (int*)arg; |
| 53 | int cur = 1; |
| 54 | int next = 1; |
| 55 | for(int i = 0; i < 9; ++i) { |
| 56 | *p = cur; |
| 57 | G.fibers[0].swap(&G.main); |
| 58 | int next2 = cur + next; |
| 59 | cur = next; |
| 60 | next = next2; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | [[noreturn]] |
| 65 | static void f(void *arg) { |