Old .gitignore actually prevent the kraken versions of the benchmarks from being comitted, scarily enough - also some of the c fib tests

This commit is contained in:
Nathan Braswell
2022-05-18 01:28:49 -04:00
parent 34c6d01c31
commit 81a54b5a06
11 changed files with 1320 additions and 24 deletions

16
fib_test/fib_let.c Normal file
View File

@@ -0,0 +1,16 @@
int fib(n) {
if (n == 0) {
return 1;
} else if (n == 1) {
return 1;
} else {
int r1 = fib(n-1);
int r2 = fib(n-2);
return r1 + r2;
}
}
int main(int argc, char **argv) {
printf("%d\n", fib(atoi(argv[1])));
return 0;
}