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

Is < 0 faster than == -1?

Name: Anonymous 2011-07-13 14:00

If checking some kind of return value, isn't the first one faster since some flag will be set already so you don't have to do an extra comparison?

Name: Anonymous 2011-07-13 14:17

>>2
Isn't the flag already set when the value is assigned to the register?  I guess it must be assumed that nothing else overwrites the flag, could the x86 ABIs have some sort of guarantee for this?

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