Re: suggestion: slight optimization for UT_String


Subject: Re: suggestion: slight optimization for UT_String
From: Joaquin Cuenca Abela (cuenca@celium.net)
Date: Mon Mar 19 2001 - 06:48:31 CST


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
cuenca@celium.net



This archive was generated by hypermail 2b25 : Mon Mar 19 2001 - 06:50:08 CST