int opEquals(Object), and other legacy ints (!)

Walter Bright newshound at digitalmars.com
Sun Jul 30 19:34:56 PDT 2006


Bruno Medeiros wrote:
> And uuuh.., I've checked gcc's generated code for a C++'s Eq1, and it 
> was only 2 instructions too, CMP and SETE ! :
> 
> Eq1:
>     ...
>     cmp     EAX,0Ch[ECX]
>     sete    EAX;
> 
> (http://www.cs.tut.fi/~siponen/upros/intel/instr/sete_setz.html)
> It seems to me perfectly valid, is there any problem here?

It doesn't work on older 32 bit x86 processors, which don't have the 
sete instruction.



More information about the Digitalmars-d-bugs mailing list