summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorofftkp <parisoplop@gmail.com>2022-05-07 01:20:33 +0300
committerBartosz Kosiorek <gang65@poczta.onet.pl>2022-05-11 10:32:30 +0200
commit6f75ec6115f0152517be634070607bc61bf96dd0 (patch)
treebf7272cd1787cb86fb4ed7eb95dc675a5b081828 /sal
parentc61a88d9d23366274d4d2283a961a578911e5ddc (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.cxx2
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) */