summaryrefslogtreecommitdiff
path: root/sc
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 /sc
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 'sc')
-rw-r--r--sc/inc/math.hxx2
-rw-r--r--sc/source/core/data/dpgroup.cxx2
-rw-r--r--sc/source/ui/dataprovider/datatransformation.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/math.hxx b/sc/inc/math.hxx
index 5c76a657b381..4d59d9a17a9a 100644
--- a/sc/inc/math.hxx
+++ b/sc/inc/math.hxx
@@ -55,7 +55,7 @@ inline double divide( const double& fNumerator, const double& fDenominator )
double fVal;
if (std::isfinite( fNumerator) && fNumerator != 0.0)
{
- rtl::math::setInf( &fVal, rtl::math::isSignBitSet( fNumerator));
+ rtl::math::setInf( &fVal, std::signbit( fNumerator));
}
else
{
diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx
index 061ad64aa5e0..fe3f58ddd524 100644
--- a/sc/source/core/data/dpgroup.cxx
+++ b/sc/source/core/data/dpgroup.cxx
@@ -72,7 +72,7 @@ bool ScDPGroupNumFilter::match(const ScDPItemData& rCellData) const
double fVal = rValue.GetValue();
if (std::isinf(fVal))
{
- if (rtl::math::isSignBitSet(fVal))
+ if (std::signbit(fVal))
{
// Less than the min value.
if (rCellData.GetValue() < maNumInfo.mfStart)
diff --git a/sc/source/ui/dataprovider/datatransformation.cxx b/sc/source/ui/dataprovider/datatransformation.cxx
index cce23e1c1505..93b84cf0869a 100644
--- a/sc/source/ui/dataprovider/datatransformation.cxx
+++ b/sc/source/ui/dataprovider/datatransformation.cxx
@@ -483,7 +483,7 @@ void NumberTransformation::Transform(ScDocument& rDoc) const
if (eType == CELLTYPE_VALUE)
{
double nVal = rDoc.GetValue(rCol, nRow, 0);
- if(rtl::math::isSignBitSet(nVal))
+ if(std::signbit(nVal))
rDoc.SetValue(rCol, nRow, 0, -1 * nVal);
}
}
@@ -568,7 +568,7 @@ void NumberTransformation::Transform(ScDocument& rDoc) const
if (eType == CELLTYPE_VALUE)
{
double nVal = rDoc.GetValue(rCol, nRow, 0);
- if (!rtl::math::isSignBitSet(nVal))
+ if (!std::signbit(nVal))
{
rDoc.SetValue(rCol, nRow, 0, sqrt(nVal));
}