diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-03 10:00:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-03 10:00:55 +0300 |
commit | 335cd830b0bd430d282687df58a91a69dac2c528 (patch) | |
tree | 3d49d43ed0c07d643b9fd081e6eb0522b57851c2 /sal/rtl/math.cxx | |
parent | c04f4393f5ec63dbd546b5c503ddc82d9cd2377e (diff) |
Kill superfluous vertical whitespace
Change-Id: I8c37b9ec45836f9c0e2dc0cf232f96f23c7c36d3
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r-- | sal/rtl/math.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 111d0da9f688..e030b9ca0c33 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include "rtl/math.h" #include "osl/diagnose.h" @@ -37,7 +36,6 @@ #include <math.h> #include <stdlib.h> - static int const n10Count = 16; static double const n10s[2][n10Count] = { { 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, @@ -272,7 +270,6 @@ struct UStringTraits } }; - // Solaris C++ 5.2 compiler has problems when "StringT ** pResult" is // "typename T::String ** pResult" instead: template< typename T, typename StringT > @@ -661,7 +658,6 @@ void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult, cDecSeparator, pGroups, cGroupSeparator, bEraseTrailingDecZeros); } - namespace { // if nExp * 10 + nAdd would result in overflow @@ -1050,13 +1046,11 @@ double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, return bSign ? -fValue : fValue; } - double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C() { return fValue * getN10Exp( nExp ); } - double SAL_CALL rtl_math_approxValue( double fValue ) SAL_THROW_EXTERN_C() { if (fValue == 0.0 || fValue == HUGE_VAL || !::rtl::math::isFinite( fValue)) @@ -1088,7 +1082,6 @@ double SAL_CALL rtl_math_approxValue( double fValue ) SAL_THROW_EXTERN_C() return bSign ? -fValue : fValue; } - double SAL_CALL rtl_math_expm1( double fValue ) SAL_THROW_EXTERN_C() { double fe = exp( fValue ); @@ -1099,7 +1092,6 @@ double SAL_CALL rtl_math_expm1( double fValue ) SAL_THROW_EXTERN_C() return (fe-1.0) * fValue / log(fe); } - double SAL_CALL rtl_math_log1p( double fValue ) SAL_THROW_EXTERN_C() { // Use volatile because a compiler may be too smart "optimizing" the @@ -1114,13 +1106,11 @@ double SAL_CALL rtl_math_log1p( double fValue ) SAL_THROW_EXTERN_C() return log(fp) * fValue / (fp-1.0); } - double SAL_CALL rtl_math_atanh( double fValue ) SAL_THROW_EXTERN_C() { return 0.5 * rtl_math_log1p( 2.0 * fValue / (1.0-fValue) ); } - /** Parent error function (erf) that calls different algorithms based on the value of x. It takes care of cases where x is negative as erf is an odd function i.e. erf(-x) = -erf(x). @@ -1160,7 +1150,6 @@ double SAL_CALL rtl_math_erf( double x ) SAL_THROW_EXTERN_C() return fErf; } - /** Parent complementary error function (erfc) that calls different algorithms based on the value of x. It takes care of cases where x is negative as erfc satisfies relationship erfc(-x) = 2 - erfc(x). See the comment for Erf(x) |