diff options
author | offtkp <parisoplop@gmail.com> | 2022-05-07 01:20:33 +0300 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2022-05-11 10:32:30 +0200 |
commit | 6f75ec6115f0152517be634070607bc61bf96dd0 (patch) | |
tree | bf7272cd1787cb86fb4ed7eb95dc675a5b081828 /sal | |
parent | c61a88d9d23366274d4d2283a961a578911e5ddc (diff) |
tdf#148430 Use atanh from <cmath> instead of our own
Change wrapper in rtl::math::atanh to use atanh
from <cmath>. Also changed all occurrences of rtl::math::atanh
on files that use this function to directly use the standard
atanh instead.
Change-Id: Idc5c456f67291f5816756f023b61afde844b5ceb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133965
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/math.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index a4775585ace4..b53cbec144b3 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -769,7 +769,7 @@ double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C() __attribute__((no_sanitize("float-divide-by-zero"))) // atahn(1) -> inf #endif { - return 0.5 * rtl_math_log1p(2.0 * fValue / (1.0-fValue)); + return ::atanh(fValue); } /** Parent error function (erf) */ |