This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug(s) in mathfp (+patch).



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]