tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Complex division, compiler-rt and logarithm



In article <20110531160718.GA12212%britannica.bec.de@localhost>,
Joerg Sonnenberger  <joerg%britannica.bec.de@localhost> wrote:
>Hi all,
>the helper implementation of complex division in compiler-rt and libgcc
>differ in one important aspect. compiler-rt is using prescaling to
>reduce the precision loss due to cancellation effects. libgcc doesn't.
>The down side to this approach is that it requires logb, fmax and scalbn
>to work -- which are currently only in libm. I can see two different
>approaches for this issue:
>(1) Use the better algorithmic approach and provide a version of the
>functions in question in libc.
>(2) Use the simpler approach of libgcc.

We already have a stealth scalbn in libc for compat_ldexp...
I am agnostic.

christos



Home | Main Index | Thread Index | Old Index