OSDN Git Service

math: clean up atan2.c
authorSzabolcs Nagy <nsz@port70.net>
Thu, 15 Aug 2013 14:05:19 +0000 (14:05 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 15 Aug 2013 14:05:19 +0000 (14:05 +0000)
commit6d85096f49fa955e7e1473b7deb30ce55b6c8be0
treea4254fb4660ce953cdbc2b956a0e6d8fd54d312e
parent31c5fb80b9eae86f801be4f46025bc6532a554c5
math: clean up atan2.c

* remove volatile hacks
* don't care about inexact flag for now (removed all the +-tiny)
* fix atanl to raise underflow properly
* remove signed int arithmetics
* use pi/2 instead of pi_o_2 (gcc generates the same code, which is not
correct, but it does not matter: we mainly care about nearest rounding)
src/math/atan2.c
src/math/atan2f.c
src/math/atan2l.c
src/math/atanl.c