diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-07-03 17:39:37 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:15:39 +0100 |
commit | ac69aa137e360340fe9f148f019d93af6c3d8336 (patch) | |
tree | 88c2fb6ea8693c69b19d3b7b38fe26cd916303c8 /src/core/CL/cl_kernels/fast_corners.cl | |
parent | 05da6dd102c988081c7d5eccb227f559f740ceef (diff) | |
download | ComputeLibrary-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/fast_corners.cl')
-rw-r--r-- | src/core/CL/cl_kernels/fast_corners.cl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/CL/cl_kernels/fast_corners.cl b/src/core/CL/cl_kernels/fast_corners.cl index 470d14a7b0..3e1929c637 100644 --- a/src/core/CL/cl_kernels/fast_corners.cl +++ b/src/core/CL/cl_kernels/fast_corners.cl @@ -206,12 +206,11 @@ __kernel void fast_corners( return; } -#ifndef USE_MAXSUPPRESSION - *out.ptr = 1; -#else - +#ifdef USE_MAXSUPPRESSION *out.ptr = compute_strength(p, in.ptr, input_stride_y, threshold); -#endif +#else /* USE_MAXSUPPRESSION */ + *out.ptr = 1; +#endif /* USE_MAXSUPPRESSION */ } /** Copy result to Keypoint buffer and count number of corners @@ -240,7 +239,7 @@ __kernel void copy_to_keypoint( { return; } -#endif +#endif /* UPDATE_NUMBER */ Image in = CONVERT_TO_IMAGE_STRUCT(input); |