On 19 Mar 2001 14:04:57 +0400, Vlad Harchev wrote:
>
> Then the following could be used to multiply 'x' by 1.5:
>       (x + x<<1) >> 1
> 
> I will be very fast.

uhm, it's not so readable as x = x * 1.5.  In addition, if later we
decide to change from 1.5 to something else, it becomes harder.  And in
addition I don't think that this "optimization" is need at all (of
course, some figures will shut me down).

Cheers,

-- 
Joaquín Cuenca Abela
[EMAIL PROTECTED]


Reply via email to