Which is faster? ulong or double

Janice Caron caron800 at googlemail.com
Thu Sep 27 13:35:06 PDT 2007


On 9/27/07, Walter Bright <newshound1 at digitalmars.com> wrote:
> Ulong divides are emulated in software only if the divisor has any bits
> set in the high 32 bits. Otherwise, the DIV instruction is used. There
> are two DIV's if there are high bits set in the dividend.
>
> BTW, ulong has more bits of *integral* precision than double or real.

Oh excellent! Thank you. :-)



More information about the Digitalmars-d mailing list