Bug(s) in mathfp (+patch).
Sergei Organov
osv@Javad.RU
Thu Dec 23 09:22:00 GMT 1999
Newlib version: 1.8.2
Configuration:
./configure --host=i686-pc-linux-gnu --target=ppc-eabi --enable-newlib-hw-fp
The 'atan2' and 'atan2f' functions don't work. Instead they return value of
"Pi" with different signs for different arguments. The problem seems to be in
the 's_atangent.c' and 'sf_atangent.c', respectively.
Fix for the problem is in attached patch-file. To apply patch:
cd newlib-1.8.2/newlib/libm; patch -p0 < patch-file
Also, the attached file fixes similar(?) mistake(?) in 'ldexp' and 'ldexpf'
functions (not tested).
Please let me know by mail (osv@javad.ru) if you think my patch is wrong.
Regards,
Sergei Organov.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-1.8.2-math-patch
Type: text/x-diff
Size: 3432 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/19991223/228ab759/attachment.bin>
More information about the Newlib
mailing list