Merge branch release-4-6 into master
[alexxy/gromacs.git] / src / gromacs / mdlib / nbnxn_kernels / nbnxn_kernel_file_generator / nbnxn_kernel_simd_template.h.pre
1 #include "typedefs.h"
2
3 #ifdef __cplusplus
4 extern "C" {{
5 #endif
6 #if 0
7 }}
8 #endif
9
10 /*! \brief Run-time dispatcher for nbnxn kernel functions. */
11 void
12 {0}(nbnxn_pairlist_set_t       *nbl_list,
13 {1}const nbnxn_atomdata_t     *nbat,
14 {1}const interaction_const_t  *ic,
15 {1}int                         ewald_excl,
16 {1}rvec                       *shift_vec,
17 {1}int                         force_flags,
18 {1}int                         clearF,
19 {1}real                       *fshift,
20 {1}real                       *Vc,
21 {1}real                       *Vvdw);
22
23 /* Need an #include guard so that sim_util.c can include all
24  * such files. */
25 #ifndef _nbnxn_kernel_simd_include_h
26 #define _nbnxn_kernel_simd_include_h
27 /*! \brief Typedefs for declaring kernel functions. */
28 typedef void (nbk_func_ener)(const nbnxn_pairlist_t     *nbl,
29                              const nbnxn_atomdata_t     *nbat,
30                              const interaction_const_t  *ic,
31                              rvec                       *shift_vec,
32                              real                       *f,
33                              real                       *fshift,
34                              real                       *Vvdw,
35                              real                       *Vc);
36 typedef nbk_func_ener *p_nbk_func_ener;
37
38 typedef void (nbk_func_noener)(const nbnxn_pairlist_t     *nbl,
39                                const nbnxn_atomdata_t     *nbat,
40                                const interaction_const_t  *ic,
41                                rvec                       *shift_vec,
42                                real                       *f,
43                                real                       *fshift);
44 typedef nbk_func_noener *p_nbk_func_noener;
45 #endif
46
47 {2}
48
49 #if 0
50 {{
51 #endif
52 #ifdef __cplusplus
53 }}
54 #endif