summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-05 22:03:46 +0200
committerTor Lillqvist <tml@collabora.com>2013-11-07 21:07:47 +0200
commit761959e7af3ea0b7b80f33f511feec212b9dc7d0 (patch)
treed7960741994cceb11f246a06c3e332243c7f2f4e
parente58c7886fe3dc830a14433078b8a1bea52a85f11 (diff)
Cosmetics: Use more consistent style in the generated OpenCL code
Change-Id: I6c292c95cb3927954d71a5513665dcf2c54166b2
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx4
-rw-r--r--sc/source/core/opencl/op_math.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index a68188ca6bb8..228df592f84c 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -436,7 +436,7 @@ public:
else
{
#ifdef ISNAN
- ss << "nCount += 1;\n\t\t";
+ ss << "nCount += 1;\n\t";
#endif
nItems += 1;
}
@@ -1248,7 +1248,7 @@ public:
mSyms.DumpSlidingWindowFunctions(decl);
mKernelSignature = DK->DumpOpName();
decl << "__kernel void DynamicKernel" << mKernelSignature;
- decl << "(\n__global double *result, ";
+ decl << "(__global double *result, ";
DK->GenSlidingWindowDecl(decl);
decl << ") {\n\tint gid0 = get_global_id(0);\n\tresult[gid0] = " <<
DK->GenSlidingWindowDeclRef(false) << ";\n}\n";
diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx
index d7286be96caa..9d10fce340a1 100644
--- a/sc/source/core/opencl/op_math.cxx
+++ b/sc/source/core/opencl/op_math.cxx
@@ -36,7 +36,7 @@ void OpCos::GenSlidingWindowFunction(std::stringstream &ss,
ss << ",";
vSubArguments[i]->GenSlidingWindowDecl(ss);
}
- ss << ")\n{\n\t";
+ ss << ") {\n\t";
ss <<"int gid0=get_global_id(0);\n\t";
ss << "double arg0 = " << vSubArguments[0]->GenSlidingWindowDeclRef();
ss << ";\n\t";