Compiler optimizations (I'm baffled)

Walter Bright newshound at digitalmars.com
Wed May 3 12:22:05 PDT 2006


Bruno Medeiros wrote:
> I ran these tests and I got basicly the same results (the int division 
> is slower). I am very intrigued and confused. Can you (or someone else) 
> explain briefly why this is so?
> One would think it would be the other way around (float being slower) or 
> at least the same speed.


I don't know. I'm surprised at such results. Perhaps it's because Intel 
has put a lot of effort into their FPU they haven't into integer math.



More information about the Digitalmars-d mailing list