MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / fib

Function fib

test/test_fibers.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static 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]]
65static void f(void *arg) {

Callers 1

fFunction · 0.70

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected