diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2018-11-16 16:49:29 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2018-12-04 17:43:42 +0100 |
commit | 5134c88cc6ca384e21419141400a843e64656503 (patch) | |
tree | d65911775dc87135f3638bc0aedc3b47ed1f373f /sc | |
parent | 496f5805e99821ff05966a915e006d53bd771de5 (diff) |
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@collabora.com>
(cherry picked from commit 62b0bcfd85eb34ddd96d82c9f96a50588b9c4d80)
Reviewed-on: https://gerrit.libreoffice.org/64458
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/op_math.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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, |