diff options
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r-- | sal/rtl/math.cxx | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 766bde5d92b9..49b38d6e74c7 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -145,8 +145,8 @@ void SAL_CALL rtl_math_doubleToString(rtl_String** pResult, sal_Int32* pResultCa sal_Int32 nResultOffset, double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, char cDecSeparator, sal_Int32 const* pGroups, - char cGroupSeparator, sal_Bool bEraseTrailingDecZeros) - SAL_THROW_EXTERN_C() + char cGroupSeparator, + sal_Bool bEraseTrailingDecZeros) noexcept { rtl::str::doubleToString(pResult, pResultCapacity, nResultOffset, fValue, eFormat, nDecPlaces, cDecSeparator, pGroups, cGroupSeparator, bEraseTrailingDecZeros); @@ -156,8 +156,8 @@ void SAL_CALL rtl_math_doubleToUString(rtl_uString** pResult, sal_Int32* pResult sal_Int32 nResultOffset, double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, sal_Unicode cDecSeparator, sal_Int32 const* pGroups, - sal_Unicode cGroupSeparator, sal_Bool bEraseTrailingDecZeros) - SAL_THROW_EXTERN_C() + sal_Unicode cGroupSeparator, + sal_Bool bEraseTrailingDecZeros) noexcept { rtl::str::doubleToString(pResult, pResultCapacity, nResultOffset, fValue, eFormat, nDecPlaces, cDecSeparator, pGroups, cGroupSeparator, bEraseTrailingDecZeros); @@ -415,7 +415,7 @@ double stringToDouble(CharT const* pBegin, CharT const* pEnd, CharT cDecSeparato double SAL_CALL rtl_math_stringToDouble(char const* pBegin, char const* pEnd, char cDecSeparator, char cGroupSeparator, rtl_math_ConversionStatus* pStatus, - char const** pParsedEnd) SAL_THROW_EXTERN_C() + char const** pParsedEnd) noexcept { return stringToDouble(reinterpret_cast<unsigned char const*>(pBegin), reinterpret_cast<unsigned char const*>(pEnd), @@ -427,13 +427,13 @@ double SAL_CALL rtl_math_stringToDouble(char const* pBegin, char const* pEnd, ch double SAL_CALL rtl_math_uStringToDouble(sal_Unicode const* pBegin, sal_Unicode const* pEnd, sal_Unicode cDecSeparator, sal_Unicode cGroupSeparator, rtl_math_ConversionStatus* pStatus, - sal_Unicode const** pParsedEnd) SAL_THROW_EXTERN_C() + sal_Unicode const** pParsedEnd) noexcept { return stringToDouble(pBegin, pEnd, cDecSeparator, cGroupSeparator, pStatus, pParsedEnd); } -double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, enum rtl_math_RoundingMode eMode) - SAL_THROW_EXTERN_C() +double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, + enum rtl_math_RoundingMode eMode) noexcept { if (!std::isfinite(fValue)) return fValue; @@ -572,12 +572,12 @@ double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, enum rtl_math_Roun return bSign ? -fValue : fValue; } -double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C() +double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) noexcept { return fValue * getN10Exp(nExp); } -double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C() +double SAL_CALL rtl_math_approxValue(double fValue) noexcept { const double fBigInt = 0x1p41; // 2^41 -> only 11 bits left for fractional part, fine as decimal if (fValue == 0.0 || !std::isfinite(fValue) || fValue > fBigInt) @@ -626,7 +626,7 @@ double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C() return bSign ? -fValue : fValue; } -bool SAL_CALL rtl_math_approxEqual(double a, double b) SAL_THROW_EXTERN_C() +bool SAL_CALL rtl_math_approxEqual(double a, double b) noexcept { static const double e48 = 0x1p-48; @@ -653,9 +653,9 @@ bool SAL_CALL rtl_math_approxEqual(double a, double b) SAL_THROW_EXTERN_C() return true; } -double SAL_CALL rtl_math_expm1(double fValue) SAL_THROW_EXTERN_C() { return expm1(fValue); } +double SAL_CALL rtl_math_expm1(double fValue) noexcept { return expm1(fValue); } -double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C() +double SAL_CALL rtl_math_log1p(double fValue) noexcept { #ifdef __APPLE__ if (fValue == -0.0) @@ -665,18 +665,18 @@ double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C() return log1p(fValue); } -double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C() { return ::atanh(fValue); } +double SAL_CALL rtl_math_atanh(double fValue) noexcept { return ::atanh(fValue); } /** Parent error function (erf) */ -double SAL_CALL rtl_math_erf(double x) SAL_THROW_EXTERN_C() { return erf(x); } +double SAL_CALL rtl_math_erf(double x) noexcept { return erf(x); } /** Parent complementary error function (erfc) */ -double SAL_CALL rtl_math_erfc(double x) SAL_THROW_EXTERN_C() { return erfc(x); } +double SAL_CALL rtl_math_erfc(double x) noexcept { return erfc(x); } /** improved accuracy of asinh for |x| large and for x near zero @see #i97605# */ -double SAL_CALL rtl_math_asinh(double fX) SAL_THROW_EXTERN_C() +double SAL_CALL rtl_math_asinh(double fX) noexcept { if (fX == 0.0) return 0.0; @@ -700,7 +700,7 @@ double SAL_CALL rtl_math_asinh(double fX) SAL_THROW_EXTERN_C() /** improved accuracy of acosh for x large and for x near 1 @see #i97605# */ -double SAL_CALL rtl_math_acosh(double fX) SAL_THROW_EXTERN_C() +double SAL_CALL rtl_math_acosh(double fX) noexcept { volatile double fZ = fX - 1.0; if (fX < 1.0) |