From 786b482ef8f6456ad57bd22d9cb46b0aeee9351f Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 25 Nov 2016 17:23:48 +0100 Subject: [PATCH] opencl: Format OpenCL kernel code * Remove some empty lines to get a more uniform code * Fix #endif handling at end of file Signed-off-by: Stefan Weil --- opencl/oclkernels.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/opencl/oclkernels.h b/opencl/oclkernels.h index 39de265573..b353d0d870 100644 --- a/opencl/oclkernels.h +++ b/opencl/oclkernels.h @@ -1045,7 +1045,6 @@ KERNEL( \n histResult[get_group_id(0)] = localHist[0]; \n \n } // kernel_HistogramRectAllChannelsReduction_Grey - ) // ThresholdRectToPix Kernel @@ -1174,10 +1173,8 @@ void kernel_ThresholdRectToPix_OneChan( pix[w] = word; } } - ) - KERNEL( \n#define RED_SHIFT 24\n \n#define GREEN_SHIFT 16\n @@ -1209,10 +1206,9 @@ KERNEL( dstData[pixelIdx] = output; } ) -#endif ; // close char* #endif // USE_EXTERNAL_KERNEL -//#endif //_OCL_KERNEL_H_ +#endif //_OCL_KERNEL_H_ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */