c75d58a002d16499ae4a8c07d14f2f91a4ff74cc
[alexxy/gromacs.git] / src / gromacs / mdlib / nbnxn_kernels / simd_4xn / nbnxn_kernel_simd_4xn.h
1 /*
2  * This file is part of the GROMACS molecular simulation package.
3  *
4  * Copyright (c) 2012,2013,2014, by the GROMACS development team, led by
5  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
6  * and including many others, as listed in the AUTHORS file in the
7  * top-level source directory and at http://www.gromacs.org.
8  *
9  * GROMACS is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; either version 2.1
12  * of the License, or (at your option) any later version.
13  *
14  * GROMACS is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with GROMACS; if not, see
21  * http://www.gnu.org/licenses, or write to the Free Software Foundation,
22  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
23  *
24  * If you want to redistribute modifications to GROMACS, please
25  * consider that scientific software is very special. Version
26  * control is crucial - bugs must be traceable. We will be happy to
27  * consider code for inclusion in the official distribution, but
28  * derived work must not be called official GROMACS. Details are found
29  * in the README & COPYING files - if they are missing, get the
30  * official version at http://www.gromacs.org.
31  *
32  * To help us fund GROMACS development, we humbly ask that you cite
33  * the research papers on the package. Check out http://www.gromacs.org.
34  */
35 /*
36  * Note: this file was generated by the Verlet kernel generator for
37  * kernel type 4xn.
38  */
39
40 #include "gromacs/legacyheaders/typedefs.h"
41
42 #include "gromacs/mdlib/nbnxn_pairlist.h"
43 #include "gromacs/mdlib/nbnxn_simd.h"
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 #if 0
49 }
50 #endif
51
52 /*! \brief Run-time dispatcher for nbnxn kernel functions. */
53 void
54 nbnxn_kernel_simd_4xn(nbnxn_pairlist_set_t       *nbl_list,
55                       const nbnxn_atomdata_t     *nbat,
56                       const interaction_const_t  *ic,
57                       int                         ewald_excl,
58                       rvec                       *shift_vec,
59                       int                         force_flags,
60                       int                         clearF,
61                       real                       *fshift,
62                       real                       *Vc,
63                       real                       *Vvdw);
64
65 /* Need an #include guard so that sim_util.c can include all
66  * such files. */
67 #ifndef _nbnxn_kernel_simd_include_h
68 #define _nbnxn_kernel_simd_include_h
69 /*! \brief Typedefs for declaring kernel functions. */
70 typedef void (nbk_func_ener)(const nbnxn_pairlist_t     *nbl,
71                              const nbnxn_atomdata_t     *nbat,
72                              const interaction_const_t  *ic,
73                              rvec                       *shift_vec,
74                              real                       *f,
75                              real                       *fshift,
76                              real                       *Vvdw,
77                              real                       *Vc);
78 typedef nbk_func_ener *p_nbk_func_ener;
79
80 typedef void (nbk_func_noener)(const nbnxn_pairlist_t     *nbl,
81                                const nbnxn_atomdata_t     *nbat,
82                                const interaction_const_t  *ic,
83                                rvec                       *shift_vec,
84                                real                       *f,
85                                real                       *fshift);
86 typedef nbk_func_noener *p_nbk_func_noener;
87 #endif
88
89 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJCombGeom_VgrpF_4xn;
90 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJCombLB_VgrpF_4xn;
91 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJ_VgrpF_4xn;
92 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJFSw_VgrpF_4xn;
93 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJPSw_VgrpF_4xn;
94 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJEwCombGeom_VgrpF_4xn;
95 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJCombGeom_VgrpF_4xn;
96 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJCombLB_VgrpF_4xn;
97 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJ_VgrpF_4xn;
98 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJFSw_VgrpF_4xn;
99 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJPSw_VgrpF_4xn;
100 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJEwCombGeom_VgrpF_4xn;
101 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJCombGeom_VgrpF_4xn;
102 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJCombLB_VgrpF_4xn;
103 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJ_VgrpF_4xn;
104 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJFSw_VgrpF_4xn;
105 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJPSw_VgrpF_4xn;
106 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJEwCombGeom_VgrpF_4xn;
107 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJCombGeom_VgrpF_4xn;
108 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJCombLB_VgrpF_4xn;
109 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJ_VgrpF_4xn;
110 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJFSw_VgrpF_4xn;
111 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJPSw_VgrpF_4xn;
112 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJEwCombGeom_VgrpF_4xn;
113 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJCombGeom_VgrpF_4xn;
114 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJCombLB_VgrpF_4xn;
115 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJ_VgrpF_4xn;
116 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJFSw_VgrpF_4xn;
117 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJPSw_VgrpF_4xn;
118 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJEwCombGeom_VgrpF_4xn;
119
120 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJCombGeom_VF_4xn;
121 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJCombLB_VF_4xn;
122 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJ_VF_4xn;
123 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJFSw_VF_4xn;
124 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJPSw_VF_4xn;
125 nbk_func_ener         nbnxn_kernel_ElecRF_VdwLJEwCombGeom_VF_4xn;
126 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJCombGeom_VF_4xn;
127 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJCombLB_VF_4xn;
128 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJ_VF_4xn;
129 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJFSw_VF_4xn;
130 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJPSw_VF_4xn;
131 nbk_func_ener         nbnxn_kernel_ElecQSTab_VdwLJEwCombGeom_VF_4xn;
132 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJCombGeom_VF_4xn;
133 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJCombLB_VF_4xn;
134 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJ_VF_4xn;
135 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJFSw_VF_4xn;
136 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJPSw_VF_4xn;
137 nbk_func_ener         nbnxn_kernel_ElecQSTabTwinCut_VdwLJEwCombGeom_VF_4xn;
138 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJCombGeom_VF_4xn;
139 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJCombLB_VF_4xn;
140 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJ_VF_4xn;
141 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJFSw_VF_4xn;
142 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJPSw_VF_4xn;
143 nbk_func_ener         nbnxn_kernel_ElecEw_VdwLJEwCombGeom_VF_4xn;
144 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJCombGeom_VF_4xn;
145 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJCombLB_VF_4xn;
146 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJ_VF_4xn;
147 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJFSw_VF_4xn;
148 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJPSw_VF_4xn;
149 nbk_func_ener         nbnxn_kernel_ElecEwTwinCut_VdwLJEwCombGeom_VF_4xn;
150
151 nbk_func_noener       nbnxn_kernel_ElecRF_VdwLJCombGeom_F_4xn;
152 nbk_func_noener       nbnxn_kernel_ElecRF_VdwLJCombLB_F_4xn;
153 nbk_func_noener       nbnxn_kernel_ElecRF_VdwLJ_F_4xn;
154 nbk_func_noener       nbnxn_kernel_ElecRF_VdwLJFSw_F_4xn;
155 nbk_func_noener       nbnxn_kernel_ElecRF_VdwLJPSw_F_4xn;
156 nbk_func_noener       nbnxn_kernel_ElecRF_VdwLJEwCombGeom_F_4xn;
157 nbk_func_noener       nbnxn_kernel_ElecQSTab_VdwLJCombGeom_F_4xn;
158 nbk_func_noener       nbnxn_kernel_ElecQSTab_VdwLJCombLB_F_4xn;
159 nbk_func_noener       nbnxn_kernel_ElecQSTab_VdwLJ_F_4xn;
160 nbk_func_noener       nbnxn_kernel_ElecQSTab_VdwLJFSw_F_4xn;
161 nbk_func_noener       nbnxn_kernel_ElecQSTab_VdwLJPSw_F_4xn;
162 nbk_func_noener       nbnxn_kernel_ElecQSTab_VdwLJEwCombGeom_F_4xn;
163 nbk_func_noener       nbnxn_kernel_ElecQSTabTwinCut_VdwLJCombGeom_F_4xn;
164 nbk_func_noener       nbnxn_kernel_ElecQSTabTwinCut_VdwLJCombLB_F_4xn;
165 nbk_func_noener       nbnxn_kernel_ElecQSTabTwinCut_VdwLJ_F_4xn;
166 nbk_func_noener       nbnxn_kernel_ElecQSTabTwinCut_VdwLJFSw_F_4xn;
167 nbk_func_noener       nbnxn_kernel_ElecQSTabTwinCut_VdwLJPSw_F_4xn;
168 nbk_func_noener       nbnxn_kernel_ElecQSTabTwinCut_VdwLJEwCombGeom_F_4xn;
169 nbk_func_noener       nbnxn_kernel_ElecEw_VdwLJCombGeom_F_4xn;
170 nbk_func_noener       nbnxn_kernel_ElecEw_VdwLJCombLB_F_4xn;
171 nbk_func_noener       nbnxn_kernel_ElecEw_VdwLJ_F_4xn;
172 nbk_func_noener       nbnxn_kernel_ElecEw_VdwLJFSw_F_4xn;
173 nbk_func_noener       nbnxn_kernel_ElecEw_VdwLJPSw_F_4xn;
174 nbk_func_noener       nbnxn_kernel_ElecEw_VdwLJEwCombGeom_F_4xn;
175 nbk_func_noener       nbnxn_kernel_ElecEwTwinCut_VdwLJCombGeom_F_4xn;
176 nbk_func_noener       nbnxn_kernel_ElecEwTwinCut_VdwLJCombLB_F_4xn;
177 nbk_func_noener       nbnxn_kernel_ElecEwTwinCut_VdwLJ_F_4xn;
178 nbk_func_noener       nbnxn_kernel_ElecEwTwinCut_VdwLJFSw_F_4xn;
179 nbk_func_noener       nbnxn_kernel_ElecEwTwinCut_VdwLJPSw_F_4xn;
180 nbk_func_noener       nbnxn_kernel_ElecEwTwinCut_VdwLJEwCombGeom_F_4xn;
181
182
183
184 #if 0
185 {
186 #endif
187 #ifdef __cplusplus
188 }
189 #endif