[Libreoffice-commits] core.git: sc/source

Tor Lillqvist tml at collabora.com
Thu Jan 8 05:39:47 PST 2015


 sc/source/core/opencl/op_math.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4852e6d27be16866bfd55309271558ce41edb232
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Jan 8 15:34:45 2015 +0200

    Use a more boring value of pi
    
    Innovativeness is good but perhaps not for mathematical constants.
    
    Change-Id: Icef93802ce9123120c8527f3fa07e524b6e067d0

diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx
index 60f9438..557a926 100644
--- a/sc/source/core/opencl/op_math.cxx
+++ b/sc/source/core/opencl/op_math.cxx
@@ -1851,7 +1851,7 @@ void OpRadians::GenSlidingWindowFunction(std::stringstream &ss,
     ss << "    double tmp;\n";
     GenTmpVariables(ss,vSubArguments);
     CheckAllSubArgumentIsNan(ss,vSubArguments);
-    ss << "    tmp = tmp0 * 3.141592657 * pow(180.0,-1);\n";
+    ss << "    tmp = tmp0 * 3.14159265358979 * pow(180.0,-1);\n";
     ss << "    return tmp;\n";
     ss << "}";
 }


More information about the Libreoffice-commits mailing list