integer division with float result

0ffh frank at frankhirsch.youknow.what.todo.net
Tue Nov 20 09:21:46 PST 2007


Matti Niemenmaa wrote:
> Lars Noschinski wrote:
>> An integer division is faster than a float division.
> 
> This actually isn't the case on Pentium 4, at least.

Even if fdiv takes as many cycles as idiv, you'll still
have to add the time needed for the necessary casts.

regards, frank



More information about the Digitalmars-d mailing list