diff options
author | Don Lewis <truckman@FreeBSD.org> | 2015-10-08 01:09:38 +0000 |
---|---|---|
committer | Don Lewis <truckman@FreeBSD.org> | 2015-10-08 01:09:38 +0000 |
commit | 6042604622579e8a928d5c231aebce3710556045 (patch) | |
tree | 4f86bb685d04707ac4ea40e1f60f138937678b9f /editors/openoffice-devel/files | |
parent | misc/ruby-progressbar: set to deprecated (diff) |
Temporarily downgrade the openoffice-devel port from the upstream trunk
branch to 4.1.2-RC1 in order to give the latter wider exposure before
4.1.2 is released.
Add this missing missing bits of patch-i114430 that were committed
to trunk upstream but that are not in 4.1.2-RC1.
Removing --enable-symbols=small from CONFIGURE_ARGS allows us to avoid
the need to use ${STRIP_CMD}.
Notes
Notes:
svn path=/head/; revision=398790
Diffstat (limited to 'editors/openoffice-devel/files')
-rw-r--r-- | editors/openoffice-devel/files/patch-i114430-41x | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/editors/openoffice-devel/files/patch-i114430-41x b/editors/openoffice-devel/files/patch-i114430-41x new file mode 100644 index 000000000000..ace3822bc0fd --- /dev/null +++ b/editors/openoffice-devel/files/patch-i114430-41x @@ -0,0 +1,73 @@ +--- sal/inc/rtl/math.h.orig 2014-02-25 08:31:58 UTC ++++ sal/inc/rtl/math.h +@@ -396,6 +396,21 @@ double SAL_CALL rtl_math_round(double fV + */ + double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C(); + ++/** Similar to pow() with stricter exception handling for indeterminate values. ++ ++ powr is specified in the IEEE 754 - 2008 Floating Point Standard. ++ ++ @param fValue ++ The value to be raised. ++ ++ @param fExp ++ The exponent. ++ ++ @return ++ powr(fValue, fExp) ++ */ ++double SAL_CALL rtl_math_powr(double fValue, double fExp) SAL_THROW_EXTERN_C(); ++ + /** Rounds value to 15 significant decimal digits. + + @param fValue +--- sal/inc/rtl/math.hxx.orig 2014-02-25 08:31:58 UTC ++++ sal/inc/rtl/math.hxx +@@ -186,6 +186,13 @@ inline double pow10Exp(double fValue, in + return rtl_math_pow10Exp(fValue, nExp); + } + ++/** A wrapper around rtl_math_powr. ++ */ ++inline double powr(double fValue, double fExp) ++{ ++ return rtl_math_powr(fValue, fExp); ++} ++ + /** A wrapper around rtl_math_approxValue. + */ + inline double approxValue(double fValue) +--- sal/rtl/source/math.cxx.orig 2014-02-25 08:31:57 UTC ++++ sal/rtl/source/math.cxx +@@ -1113,6 +1113,19 @@ double SAL_CALL rtl_math_expm1( double f + return (fe-1.0) * fValue / log(fe); + } + ++double SAL_CALL rtl_math_powr( double fValue, double fExp ) SAL_THROW_EXTERN_C() ++{ ++ if ((fValue == 0.0 && fExp == 0.0) || ++ (rtl::math::isInf( fExp ) && !rtl::math::isSignBitSet( fExp )) || ++ (rtl::math::isInf( fValue ) && !rtl::math::isSignBitSet( fValue ))) ++ { ++ double fResult; ++ ::rtl::math::setNan( &fResult ); ++ return fResult; ++ } ++ return pow(fValue, fExp); ++} ++ + + double SAL_CALL rtl_math_log1p( double fValue ) SAL_THROW_EXTERN_C() + { +--- sal/util/sal.map.orig 2014-02-25 08:31:48 UTC ++++ sal/util/sal.map +@@ -629,6 +629,8 @@ UDK_3.12 { # AOO 3.5 + global: + osl_loadAsciiModule; + osl_loadAsciiModuleRelative; ++ ++ rtl_math_powr; + } UDK_3.11; + + PRIVATE_1.0 { |