fix handling of string arguments in opencl

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 22 September 2022 16:06 UTC

As one of the code comments said the code used string hashes to represent strings and this was a broken idea. But the basic idea of that is actually
valid, so just implement that properly and use it only for comparing strings. See the code comment in opbase.cxx for technical details.

Change-Id: I113d6b4d5e1e78bbe2c05aafc0572605e2595ad8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140395

78c6e9efa857 fix handling of string arguments in opencl
sc/source/core/opencl/formulagroupcl.cxx | 213 ++++++++++++++++--------------
sc/source/core/opencl/op_math.cxx | 30 ++++-
sc/source/core/opencl/op_math.hxx | 12 +-
sc/source/core/opencl/op_math_helpers.hxx | 16 +++
sc/source/core/opencl/opbase.cxx | 78 ++++++++++-
sc/source/core/opencl/opbase.hxx | 26 +++-
6 files changed, 256 insertions(+), 119 deletions(-)

Upstream: cgit.freedesktop.org


  • Share