summaryrefslogtreecommitdiff
path: root/sal/rtl/math.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r--sal/rtl/math.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 8435715a1afc..eef48b57e74e 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -1277,6 +1277,9 @@ double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C()
}
double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C()
+#if defined __clang__
+ __attribute__((no_sanitize("float-divide-by-zero"))) // atahn(1) -> inf
+#endif
{
return 0.5 * rtl_math_log1p(2.0 * fValue / (1.0-fValue));
}