diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-07-08 21:35:26 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-11 00:25:36 -0400 |
commit | c6fd693a8a1efb9e301bd623d29411dfa2378e5c (patch) | |
tree | c907ed85ad080fc393778d09fd65bbf4f6d1ff70 /sc/source/core/opencl/openclwrapper.hxx | |
parent | d5ae61ed2394b6945b969c61aea0adac2234f702 (diff) |
cleanup formulagroupcl and add opencl kernel for averagedelta.
Conflicts:
sc/source/core/opencl/openclwrapper.hxx
Change-Id: Id4777d3854d34ab34dd29b050cd329a803023a39
Diffstat (limited to 'sc/source/core/opencl/openclwrapper.hxx')
-rwxr-xr-x | sc/source/core/opencl/openclwrapper.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/core/opencl/openclwrapper.hxx b/sc/source/core/opencl/openclwrapper.hxx index 3e87f8445e7d..a0c132a2c49f 100755 --- a/sc/source/core/opencl/openclwrapper.hxx +++ b/sc/source/core/opencl/openclwrapper.hxx @@ -11,10 +11,8 @@ #define _OPENCL_WRAPPER_H_ #include <config_features.h> - -#ifdef __APPLE__ -#include <OpenCL/cl.h> -#else +#include <formula/opcode.hxx> +#include <cassert> #include <CL/cl.h> #endif @@ -212,6 +210,7 @@ public: int OclHostFormulaMax32Bits(float *fpSrcData,uint *npStartPos,uint *npEndPos,double *output,int outputSize); int OclHostFormulaMin32Bits(float *fpSrcData,uint *npStartPos,uint *npEndPos,double *output,int outputSize); int OclHostFormulaAverage32Bits(float *fpSrcData,uint *npStartPos,uint *npEndPos,double *output,int outputSize); + double *OclSimpleDeltaOperation(OpCode eOp, const double *pOpArray, const double *pSubtractSingle, size_t nElements); //int OclHostFormulaCount(int *startPos,int *endPos,float *output,int outputSize); //int OclHostFormulaSum(float *srcData,int *startPos,int *endPos,float *output,int outputSize); |