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 16:41

>>4
Flags Affected
None.

FFFFUUUUUUUUUU----

Flags Affected: n - - - - - z -
                n Set if most significant bit of loaded value is set; else cleared.
                z Set if value loaded is zero; else cleared.

At least on the 6502 it does ;_;

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