only if it's a large or small value for one.
; )
Spehro Pefhany wrote:
{Quote hidden}> At 08:40 AM 2/20/2006 -0800, you wrote:
>
>> I have an equation that multiplies by 1:
>>
>> 1 * A^ .3241
>>
>> Is there any reason I have to multiply be 1? Just trying to save a little
>> program space and execution time.
>>
>> Thanks
>>
>> John
>>
>
> More context might help. Where are you getting the equation from? How are
> you implementing it? In any case, multiplying a floating point number by
> 1 will probably not do anything, and even if the optimizer isn't smart
> enough to get rid of it entirely, it won't likely use much time or room,
> especially compared to that nasty x^y function (assuming A is a variable
> so it cannot be pre-computed).
>
>
>> Best regards,
>>
>
> Spehro Pefhany --"it's the network..." "The Journey is the reward"
>
speff
KILLspaminterlog.com Info for manufacturers:
http://www.trexon.com
> Embedded software/hardware/analog Info for designers:
http://www.speff.com
> ->> Inexpensive test equipment & parts
http://search.ebay.com/_W0QQsassZspeff
>
>
>