Compiler optimizations

Craig Black cblack at ara.com
Mon May 1 07:37:35 PDT 2006


"dennis luehring" <dl.soluz at gmx.net> wrote in message 
news:e34ak8$17sg$1 at digitaldaemon.com...
> Craig Black schrieb:
>> This is probably because you have SSE optimizations disabled.
>> This one works even without SSE.  This shows that integer division is
>> slower.  Also, if you change the division to multiplication, you will 
>> notice
>> that integer multiplication is faster, which is what you would expect.
>
> your right the double version is faster - i don't think that it can be 
> used with integer division - because the to-float and back-to-int 
> conversion costs too much...
>
> ciao dennis

Not if SSE is enabled.  I have actually experienced significant performance 
increases by doing so.

-Craig 





More information about the Digitalmars-d mailing list