This is the mail archive of the
newlib@sourceware.cygnus.com
mailing list for the newlib project.
Bug(s) in mathfp (+patch).
- To: newlib at sourceware dot cygnus dot com
- Subject: Bug(s) in mathfp (+patch).
- From: Sergei Organov <osv at Javad dot RU>
- Date: 23 Dec 1999 20:21:09 +0300
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.
newlib-1.8.2-math-patch