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

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Mon Aug 7 05:59:50 PDT 2006


Lionello Lunesu wrote:
>> But indeed, a cmp/sete combo seems to do the same in less instructions.
> 
> But is it faster? I've noticed that many of the higher-level assembly
> instructions are actually slower than multiple lower-level ones. "loop" is
> the best example of this (dec ecx/jne is faster), or "rep" (again, dec/jne
> is faster).

Heh... You may have noticed I didn't use any word related to speed :). 
The reason for that is that I don't know much about optimization for 
speed, especially where pipelines etc. are involved...

Hardware is weird.



More information about the Digitalmars-d-bugs mailing list