summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-02-04 21:30:59 +0200
committerTor Lillqvist <tml@collabora.com>2015-02-04 21:36:18 +0200
commitcf726ae8514ce9ad8f8a88e2de06a67850543fef (patch)
tree1cb3ec5ef70e2459ec971be5a82bd0fd5f4a5cd1 /sc
parentCheck number of cells referenced by group instead of group size (diff)
downloadcore-cf726ae8514ce9ad8f8a88e2de06a67850543fef.tar.gz
core-cf726ae8514ce9ad8f8a88e2de06a67850543fef.zip
Add Add, Sub, Mul and Div back to the default OpenCL opcode subset
The code falls back to the traditional interpreter when necessary. This reverts commit ad582ce757f671a6271648e22a136f2d238cc15e. Change-Id: I4cbafba2c469c0814dcc5c5210db5ce495e6b641
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/calcconfig.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/tool/calcconfig.cxx b/sc/source/core/tool/calcconfig.cxx
index 4e9292a2c23a..00239105455d 100644
--- a/sc/source/core/tool/calcconfig.cxx
+++ b/sc/source/core/tool/calcconfig.cxx
@@ -41,6 +41,10 @@ void ScCalcConfig::setOpenCLConfigToDefault()
// Keep in order of opcode value, is that clearest? (Random order,
// at least, would make no sense at all.)
+ maOpenCLSubsetOpCodes.insert(ocAdd);
+ maOpenCLSubsetOpCodes.insert(ocSub);
+ maOpenCLSubsetOpCodes.insert(ocMul);
+ maOpenCLSubsetOpCodes.insert(ocDiv);
maOpenCLSubsetOpCodes.insert(ocRandom);
maOpenCLSubsetOpCodes.insert(ocSin);
maOpenCLSubsetOpCodes.insert(ocCos);