Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Can you optimize my fibs?

Name: Anonymous 2015-12-16 17:07

Hi /frog/,

I've been tweaking my fibs implementation and it still seems slow in some cases.

How could I make it faster? Any ideas? Any obvious optimilizations I'm missing here?

fibs:
cmp rdi, 1
ja .l1
mov rax, rdi
ret
.l1:
dec rdi
push rdi
call fibs
pop rdi
push rax
dec rdi
call fibs
pop rcx
add rax, rcx
ret

Name: Anonymous 2015-12-16 17:42

>>3
It would appear as though you have mistakenly quoted text that had not been previously typed. Please correct these mistakes in any and all future posts.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List