Changed the way jumps are generated to avoid generating jumps to the
[sixpic.git] / tests / general / fib.c
blob9a7ce1adc58c979dee9d3226a2401ee86bd84c6a
1 // iterative fibonacci
3 int fib (byte i){
4 int a = 0;
5 int b = 1;
6 int t;
7 while(i){
8 t = b;
9 b = b + a;
10 a = t;
11 i--;
13 return a;
16 fib(6);