aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/cl_kernels/elementwise_operation.cl
diff options
context:
space:
mode:
authorUsama Arif <usama.arif@arm.com>2019-05-14 10:22:36 +0100
committerUsama Arif <usama.arif@arm.com>2019-05-15 17:09:25 +0000
commit52c54f61b97bcedab309bfa761e193939e12e739 (patch)
treee99186abb3c6a69ef26b17e8fb57817ee56efe53 /src/core/CL/cl_kernels/elementwise_operation.cl
parenteb312ef6c20e8548c43eb9d4a3edf7265bc6777b (diff)
downloadComputeLibrary-52c54f61b97bcedab309bfa761e193939e12e739.tar.gz
COMPMID-2270: Implement POW operator for CL
Change-Id: Id14ecdc62439d90eb247bb75990d6593637cb42e Signed-off-by: Usama Arif <usama.arif@arm.com> Reviewed-on: https://review.mlplatform.org/c/1129 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/elementwise_operation.cl')
-rw-r--r--src/core/CL/cl_kernels/elementwise_operation.cl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/CL/cl_kernels/elementwise_operation.cl b/src/core/CL/cl_kernels/elementwise_operation.cl
index 00d7ed3ba1..0b660e4012 100644
--- a/src/core/CL/cl_kernels/elementwise_operation.cl
+++ b/src/core/CL/cl_kernels/elementwise_operation.cl
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 ARM Limited.
+ * Copyright (c) 2018-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -37,6 +37,7 @@
#define MIN(x, y) min(x, y)
#define SQUARED_DIFF(x, y) (x - y) * (x - y)
#define DIV(x, y) (x / y)
+#define POWER(x, y) pow(x, y)
#define OP_FUN_NAME_STR(op) elementwise_operation_##op
#define OP_FUN_NAME(op) OP_FUN_NAME_STR(op)