aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/cl_kernels/magnitude_phase.cl
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-07-03 17:39:37 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:15:39 +0100
commitac69aa137e360340fe9f148f019d93af6c3d8336 (patch)
tree88c2fb6ea8693c69b19d3b7b38fe26cd916303c8 /src/core/CL/cl_kernels/magnitude_phase.cl
parent05da6dd102c988081c7d5eccb227f559f740ceef (diff)
downloadComputeLibrary-ac69aa137e360340fe9f148f019d93af6c3d8336.tar.gz
COMPMID-418 Add check and fix comments after preprocessor conditions
Change-Id: I1353fd652ee180e3931e58b4ce13d651a48c7e2c Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79567 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/magnitude_phase.cl')
-rw-r--r--src/core/CL/cl_kernels/magnitude_phase.cl16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/CL/cl_kernels/magnitude_phase.cl b/src/core/CL/cl_kernels/magnitude_phase.cl
index c4b0df8de9..e9845e0e20 100644
--- a/src/core/CL/cl_kernels/magnitude_phase.cl
+++ b/src/core/CL/cl_kernels/magnitude_phase.cl
@@ -81,17 +81,17 @@ inline uchar16 phase_signed(VEC_DATA_TYPE(DATA_TYPE, 16) a, VEC_DATA_TYPE(DATA_T
#define MAGNITUDE_OP(x, y) magnitude_l1((x), (y))
#elif(2 == MAGNITUDE)
#define MAGNITUDE_OP(x, y) magnitude_l2(convert_int16(x), convert_int16(y))
-#else
+#else /* MAGNITUDE */
#define MAGNITUDE_OP(x, y)
-#endif
+#endif /* MAGNITUDE */
#if(1 == PHASE)
#define PHASE_OP(x, y) phase_unsigned((x), (y))
#elif(2 == PHASE)
#define PHASE_OP(x, y) phase_signed((x), (y))
-#else
+#else /* PHASE */
#define PHASE_OP(x, y)
-#endif
+#endif /* PHASE */
/** Calculate the magnitude and phase of given the gradients of an image.
*
@@ -133,11 +133,11 @@ __kernel void magnitude_phase(
#ifdef MAGNITUDE
,
IMAGE_DECLARATION(magnitude)
-#endif
+#endif /* MAGNITUDE */
#ifdef PHASE
,
IMAGE_DECLARATION(phase)
-#endif
+#endif /* PHASE */
)
{
// Get pixels pointer
@@ -154,9 +154,9 @@ __kernel void magnitude_phase(
#ifdef MAGNITUDE
Image magnitude = CONVERT_TO_IMAGE_STRUCT(magnitude);
vstore16(MAGNITUDE_OP(in_a, in_b), 0, (__global DATA_TYPE *)magnitude.ptr);
-#endif
+#endif /* MAGNITUDE */
#ifdef PHASE
Image phase = CONVERT_TO_IMAGE_STRUCT(phase);
vstore16(PHASE_OP(in_a, in_b), 0, phase.ptr);
-#endif
+#endif /* PHASE */
}