Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ fib
Function
fib
test/pthread/test_pthread_join.c:16–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
#include <emscripten/console.h>
15
16
long fib(long n) {
17
if (n <= 0) return 0;
18
if (n == 1) return 1;
19
return fib(n-1) + fib(n-2);
20
}
21
22
static void *thread_start(void *arg) {
23
long n = (long)arg;
Callers
1
thread_start
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected