Hi Nikos,

On Sunday, 2007-10-14 12:04:10 -0700, Nikos Trivlis wrote:

> I have a sample c-like code about how to improve the POW (power
> function) and you could maybe find it useful for calc.

I don't see in what aspect that would improve the POWER code. Au
contraire, the exponent is only integer and doesn't handle floating
point, the loop would introduce a runtime penalty for large exponent
values, but the code is buggy and the loop is never executed. If it was
it wouldn't work either. As is, the function returns 0 for every
combination of arguments.

  Eike

P.S.: As you're not subscribed to the mailing list you were posting to,
you will miss replies that are directed to the list only. When answering,
please reply only to the list (Reply-To header is set), not to my
personal account. Thanks.

-- 
 OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
 SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't send personal mail to this [EMAIL PROTECTED] account, which I use 
for
 mailing lists only and don't read from outside Sun. Use [EMAIL PROTECTED] 
Thanks.

Attachment: pgpMbbq7OcAmI.pgp
Description: PGP signature

Reply via email to