Kaydet (Commit) 66d1d902 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Don't use OpenCL unless the function is in the subset we support

Change-Id: I6c6fcc492f338cd8994bbc781bbf71abb6bf5057
üst ccf58b0e
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "reftokenhelper.hxx" #include "reftokenhelper.hxx"
#include "clipparam.hxx" #include "clipparam.hxx"
#include "compiler.hxx" #include "compiler.hxx"
#include "interpre.hxx"
#include <formula/compiler.hrc> #include <formula/compiler.hrc>
#include "rechead.hxx" #include "rechead.hxx"
#include "parclass.hxx" #include "parclass.hxx"
...@@ -1218,6 +1219,12 @@ void ScTokenArray::CheckToken( const FormulaToken& r ) ...@@ -1218,6 +1219,12 @@ void ScTokenArray::CheckToken( const FormulaToken& r )
if (SC_OPCODE_START_FUNCTION <= eOp && eOp < SC_OPCODE_STOP_FUNCTION) if (SC_OPCODE_START_FUNCTION <= eOp && eOp < SC_OPCODE_STOP_FUNCTION)
{ {
if (ScInterpreter::GetGlobalConfig().mbOpenCLSubsetOnly && ScInterpreter::GetGlobalConfig().maOpenCLSubsetFunctions.find(eOp) == ScInterpreter::GetGlobalConfig().maOpenCLSubsetFunctions.end())
{
meVectorState = FormulaVectorDisabled;
return;
}
// We support vectorization for the following opcodes. // We support vectorization for the following opcodes.
switch (eOp) switch (eOp)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment