Compiler optimizations

Craig Black cblack at ara.com
Sun Apr 30 11:51:26 PDT 2006


> your tests just show us - wow! multipling is much faster then dividing -
> and that is something we all know very well (in float and int) :-)

No, actually it shows us that integer division can be slower than floating
point division.  This is because it uses floating point division under the
hood and requires that the divisor be converted from int to float.

-Craig





More information about the Digitalmars-d mailing list