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: suigin 2015-12-19 4:22

>>32
It's a shame we have to wait to Q4 2016 for Zen. My 6 year old Core i7 860 still outperforms the latest AMD processors, although by a small margin.

I very much don't want to use Intel's compromised hardware anymore.

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