summaryrefslogtreecommitdiff
path: root/sal/rtl/math.cxx
diff options
context:
space:
mode:
authorYukio Siraichi <yukio.siraichi@gmail.com>2020-03-14 02:33:55 +0900
committerMike Kaganski <mike.kaganski@collabora.com>2020-03-14 09:10:34 +0100
commit8f8b64cad377c6d767cdf291fd00225658bd02c5 (patch)
treede5f87582bf88b030f57742109aaa289f18e428c /sal/rtl/math.cxx
parent2eb0e7594cc875dd0960822d9403b573ac00f739 (diff)
tdf#130974 replace `rtl::math::isSignBitSet` with `std::signbit`.
Change-Id: I91235eee8c6a9d4a59c1933527b49141f64cd91b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90478 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r--sal/rtl/math.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 31de7f718b09..d35156aa79e6 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -236,7 +236,7 @@ void doubleToString(typename T::String ** pResult,
// sign adjustment, instead of testing for fValue<0.0 this will also fetch
// -0.0
- bool bSign = rtl::math::isSignBitSet(fValue);
+ bool bSign = std::signbit(fValue);
if (bSign)
fValue = -fValue;
@@ -1042,7 +1042,7 @@ double SAL_CALL rtl_math_round(double fValue, int nDecPlaces,
return std::round( fValue );
// sign adjustment
- bool bSign = rtl::math::isSignBitSet( fValue );
+ bool bSign = std::signbit( fValue );
if (bSign)
fValue = -fValue;
@@ -1168,7 +1168,7 @@ double SAL_CALL rtl_math_approxValue( double fValue ) SAL_THROW_EXTERN_C()
double fOrigValue = fValue;
- bool bSign = ::rtl::math::isSignBitSet(fValue);
+ bool bSign = std::signbit(fValue);
if (bSign)
fValue = -fValue;