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

optimizing CPU/FPU instructions

Name: Anonymous 2013-10-07 16:13

is it possible to code, say, an ADD that's faster than the actual instruction for ADD, only using other CPU functions (no physical access to the chip)? or are all CPU instructions always perfectly optimized?

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-10-10 10:29

>>14
Not that much faster (in my experience, the low values for FPU instructions are very rare in practice, and only occur on "round" numbers and special cases like 0/1.)

Nehalem:
FSINCOS ~110
FDIV 7-27
FPTAN ~115

Sandy Bridge:
FSINCOS 43-123
FDIV 10-24
FPTAN ~130

Ivy Bridge:
FDIV 10-24
FSINCOS 50-123
FPTAN ~130

Not the same precision either due to rounding and such.

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