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-18 19:01

>>23
I KNOW, FUNROLL ALL THE THINGS

>>24
I'm the same C-supremacist from that thread. Unfortunately he didnt implement semantically exact C equivalent, no side by side comparison, no scientific method. Wishful thinking, as expected from anime degenerates.

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