From: | C. Dimitrakakis |
Date: | 11 Jan 2000 at 23:25:35 |
Subject: | Re: MC68000(+) command execution times. |
On 11-Jan-00, Vic E Babes wrote:
> Just thought I`d mention that it is quicker to multiply by decimals, than
> to divide by integers, i.e.
>
> 5 * 0.25
>
> is quicker than 5/4
>
> However - when I tried this in Blitz - I got incorrect answers.
Of course.. If you type say 0.26 this gets translated to the closest
possible 16.16 number..you lose some bits. This is especially true with .f
numbers - all constants get translated to integer/fixed-point and then to
floating point in the blitz environment. This sux.:)
The 16.16x16.16 multiplication routine in blitz, however is very good and
accurate.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie