math: fix atanh (overflow and underflow issues)
authorSzabolcs Nagy <nsz@port70.net>
Thu, 5 Sep 2013 16:57:46 +0000 (16:57 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 5 Sep 2013 16:57:46 +0000 (16:57 +0000)
commitf4d9bfb3a986f2c25ec023426b4fb222130af75f
treeb2fd726519f60975ffd2fef8365014b6f98b1b99
parentafa2aaccea6e9f8c55809abb6471dc9aaa402711
math: fix atanh (overflow and underflow issues)

in atanh exception handling was left to the called log functions,
but the argument to those functions could underflow or overflow.

use double_t and float_t to avoid some useless stores on x86
src/math/atanh.c
src/math/atanhf.c
src/math/atanhl.c