Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / nbnxm / opencl / nbnxm_ocl_kernels.clh
index 5730d24374e45d286817e4858046ec5183cae1c9..6b35a5d0e0aa4a9dc4bd8384692eec330814855a 100644 (file)
 #define EL_CUTOFF
 
 /* cut-off + V shift LJ */
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecCut_VdwLJ ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecCut_VdwLJ##y
 #include "nbnxm_ocl_kernel.clh"
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w geometric combination rules */
 #define LJ_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecCut_VdwLJCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecCut_VdwLJCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w LB combination rules */
 #define LJ_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecCut_VdwLJCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecCut_VdwLJCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w geometric combination rules */
 #define LJ_EWALD_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecCut_VdwLJEwCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecCut_VdwLJEwCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w LB combination rules */
 #define LJ_EWALD_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecCut_VdwLJEwCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecCut_VdwLJEwCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* F switch LJ */
 #define LJ_FORCE_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecCut_VdwLJFsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecCut_VdwLJFsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_FORCE_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 /* V switch LJ */
 #define LJ_POT_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecCut_VdwLJPsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecCut_VdwLJPsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_POT_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 #define EL_RF
 
 /* cut-off + V shift LJ */
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecRF_VdwLJ ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecRF_VdwLJ##y
 #include "nbnxm_ocl_kernel.clh"
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w geometric combination rules */
 #define LJ_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecRF_VdwLJCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecRF_VdwLJCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w LB combination rules */
 #define LJ_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecRF_VdwLJCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecRF_VdwLJCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w geometric combination rules */
 #define LJ_EWALD_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecRF_VdwLJEwCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecRF_VdwLJEwCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w LB combination rules */
 #define LJ_EWALD_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecRF_VdwLJEwCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecRF_VdwLJEwCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* F switch LJ */
 #define LJ_FORCE_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecRF_VdwLJFsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecRF_VdwLJFsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_FORCE_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 /* V switch LJ */
 #define LJ_POT_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecRF_VdwLJPsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecRF_VdwLJPsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_POT_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 #define EL_EWALD_ANA
 
 /* cut-off + V shift LJ */
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEw_VdwLJ ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEw_VdwLJ##y
 #include "nbnxm_ocl_kernel.clh"
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w geometric combination rules */
 #define LJ_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEw_VdwLJCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEw_VdwLJCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w LB combination rules */
 #define LJ_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEw_VdwLJCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEw_VdwLJCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w geometric combination rules */
 #define LJ_EWALD_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEw_VdwLJEwCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEw_VdwLJEwCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w LB combination rules */
 #define LJ_EWALD_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEw_VdwLJEwCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEw_VdwLJEwCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* F switch LJ */
 #define LJ_FORCE_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEw_VdwLJFsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEw_VdwLJFsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_FORCE_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 /* V switch LJ */
 #define LJ_POT_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEw_VdwLJPsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEw_VdwLJPsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_POT_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 #define VDW_CUTOFF_CHECK
 
 /* cut-off + V shift LJ */
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwTwinCut_VdwLJ ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwTwinCut_VdwLJ##y
 #include "nbnxm_ocl_kernel.clh"
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w geometric combination rules */
 #define LJ_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwTwinCut_VdwLJCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwTwinCut_VdwLJCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w LB combination rules */
 #define LJ_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwTwinCut_VdwLJCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwTwinCut_VdwLJCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w geometric combination rules */
 #define LJ_EWALD_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwTwinCut_VdwLJEwCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwTwinCut_VdwLJEwCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w LB combination rules */
 #define LJ_EWALD_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwTwinCut_VdwLJEwCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwTwinCut_VdwLJEwCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* F switch LJ */
 #define LJ_FORCE_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwTwinCut_VdwLJFsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwTwinCut_VdwLJFsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_FORCE_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 /* V switch LJ */
 #define LJ_POT_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwTwinCut_VdwLJPsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwTwinCut_VdwLJPsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_POT_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 #define EL_EWALD_TAB
 
 /* cut-off + V shift LJ */
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTab_VdwLJ ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTab_VdwLJ##y
 #include "nbnxm_ocl_kernel.clh"
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w geometric combination rules */
 #define LJ_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTab_VdwLJCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTab_VdwLJCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w LB combination rules */
 #define LJ_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTab_VdwLJCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTab_VdwLJCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w geometric combination rules */
 #define LJ_EWALD_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTab_VdwLJEwCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTab_VdwLJEwCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w LB combination rules */
 #define LJ_EWALD_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTab_VdwLJEwCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTab_VdwLJEwCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* F switch LJ */
 #define LJ_FORCE_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTab_VdwLJFsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTab_VdwLJFsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_FORCE_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 /* V switch LJ */
 #define LJ_POT_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTab_VdwLJPsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTab_VdwLJPsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_POT_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 #define VDW_CUTOFF_CHECK
 
 /* cut-off + V shift LJ */
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTabTwinCut_VdwLJ ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTabTwinCut_VdwLJ##y
 #include "nbnxm_ocl_kernel.clh"
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w geometric combination rules */
 #define LJ_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTabTwin_VdwLJCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTabTwin_VdwLJCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* cut-off + V shift LJ w LB combination rules */
 #define LJ_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTabTwin_VdwLJCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTabTwin_VdwLJCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w geometric combination rules */
 #define LJ_EWALD_COMB_GEOM
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTabTwinCut_VdwLJEwCombGeom ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTabTwinCut_VdwLJEwCombGeom##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_GEOM
 #undef NB_KERNEL_FUNC_NAME
 /* LJ-Ewald w LB combination rules */
 #define LJ_EWALD_COMB_LB
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTabTwinCut_VdwLJEwCombLB ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTabTwinCut_VdwLJEwCombLB##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_EWALD_COMB_LB
 #undef NB_KERNEL_FUNC_NAME
 /* F switch LJ */
 #define LJ_FORCE_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTabTwinCut_VdwLJFsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTabTwinCut_VdwLJFsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_FORCE_SWITCH
 #undef NB_KERNEL_FUNC_NAME
 /* V switch LJ */
 #define LJ_POT_SWITCH
-#define NB_KERNEL_FUNC_NAME(x, y) x ## _ElecEwQSTabTwinCut_VdwLJPsw ## y
+#define NB_KERNEL_FUNC_NAME(x, y) x##_ElecEwQSTabTwinCut_VdwLJPsw##y
 #include "nbnxm_ocl_kernel.clh"
 #undef LJ_POT_SWITCH
 #undef NB_KERNEL_FUNC_NAME