summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfengzeng <fengzeng@multicorewareinc.com>2013-12-04 16:52:51 +0800
committerI-Jui (Ray) Sung <ray@multicorewareinc.com>2013-12-18 20:34:57 -0600
commit04a284012ae17165c834c32257e1b36fbae53155 (patch)
tree7524dae8addd0b1ae77323ca65788e40c964b6b5
parent160d5e54b578895424a1c77de805beae46b82226 (diff)
GPU Calc: Optimized EXP
AMLOEXT-271 Change-Id: I61eaa744d8b4f10804254c6cede39af274c150ad Signed-off-by: haochen <haochen@multicorewareinc.com> Signed-off-by: Wei Wei <weiwei@multicorewareinc.com> Signed-off-by: I-Jui (Ray) Sung <ray@multicorewareinc.com>
-rw-r--r--sc/source/core/opencl/op_math.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx
index f54f22b88e14..e96c7caad71a 100644
--- a/sc/source/core/opencl/op_math.cxx
+++ b/sc/source/core/opencl/op_math.cxx
@@ -702,7 +702,7 @@ void OpExp::GenSlidingWindowFunction(std::stringstream &ss,
ss<<"))\n\t\t";
ss<<"arg0 = 0;\n\t";
#endif
- ss << "double tmp=exp(arg0);\n\t";
+ ss << "double tmp = pow(M_E, arg0);\n\t";
ss << "return tmp;\n";
ss << "}";
}