[Libreoffice-commits] core.git: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Dec 3 14:28:53 UTC 2018
sc/source/core/opencl/op_math.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 62b0bcfd85eb34ddd96d82c9f96a50588b9c4d80
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Fri Nov 16 16:49:29 2018 +0100
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Mon Dec 3 15:28:31 2018 +0100
sync PI value used in opencl SQRTPI to the one used in scaddins
Otherwise the sqrtpi unittest fails in opencl mode. This value is less
precise, but consistency should be more important here, not to mention
that float doesn't have that high precision anyway.
Change-Id: I8e85b7029d33932c81009e5d48e0fe2164c68dcf
Reviewed-on: https://gerrit.libreoffice.org/64228
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx
index 7f8305ecf708..040c0afc4a55 100644
--- a/sc/source/core/opencl/op_math.cxx
+++ b/sc/source/core/opencl/op_math.cxx
@@ -2483,7 +2483,7 @@ void OpSqrtPi::GenSlidingWindowFunction(std::stringstream &ss,
ss << ";\n";
}
ss << " return (double)sqrt(arg0 *";
- ss << " 3.1415926535897932384626433832795f);\n";
+ ss << " 3.1415926535897932);\n";
ss << "}";
}
void OpCeil::GenSlidingWindowFunction(std::stringstream &ss,
More information about the Libreoffice-commits
mailing list