Compiler optimizations

Craig Black cblack at ara.com
Sun Apr 30 10:31:19 PDT 2006


>
> > int divTest2(int divisor, int total)
> > {
> >   int sum = 0;
> >   for(int i = 0; i < total; i++)
> >   {
> >     int quotient = i * ( 1.0 / divisor ); // !!!!!!!!
> >     sum += quotient;
> >   }
> > }

I don't see what you are trying to say here.

-Craig





More information about the Digitalmars-d mailing list