sc/source/core/opencl/op_math.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 62b0bcfd85eb34ddd96d82c9f96a50588b9c4d80 Author: Luboš Luňák <[email protected]> AuthorDate: Fri Nov 16 16:49:29 2018 +0100 Commit: Luboš Luňák <[email protected]> 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 <[email protected]> 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, _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
