diff options
Diffstat (limited to 'src/common/load-template.c')
-rw-r--r-- | src/common/load-template.c | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/src/common/load-template.c b/src/common/load-template.c index 5caa23b..5e197f7 100644 --- a/src/common/load-template.c +++ b/src/common/load-template.c @@ -16,35 +16,28 @@ #undef DATA #define DATA DATA_REAL -void LOAD_FUNCTION_NAME(r)(const CCTK_REAL *ptr, - INT_STRIDE_IJK, - struct DATA_STRUCT *data) -{ -#include LOAD_DATA_FILE_NAME -} - #ifdef HAVE_CCTK_REAL4 - void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *ptr, + void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *restrict const ptr, INT_STRIDE_IJK, - struct DATA_STRUCT *data) + struct DATA_STRUCT *restrict const data) { #include LOAD_DATA_FILE_NAME } #endif #ifdef HAVE_CCTK_REAL8 - void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *ptr, + void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *restrict const ptr, INT_STRIDE_IJK, - struct DATA_STRUCT *data) + struct DATA_STRUCT *restrict const data) { #include LOAD_DATA_FILE_NAME } #endif #ifdef HAVE_CCTK_REAL16 - void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *ptr, + void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *restrict const ptr, INT_STRIDE_IJK, - struct DATA_STRUCT *data) + struct DATA_STRUCT *restrict const data) { #include LOAD_DATA_FILE_NAME } @@ -59,35 +52,28 @@ void LOAD_FUNCTION_NAME(r)(const CCTK_REAL *ptr, #undef DATA #define DATA DATA_COMPLEX -void LOAD_FUNCTION_NAME(c)(const CCTK_REAL (*ptr)[COMPLEX_N_PARTS], - INT_STRIDE_IJK, int part, - struct DATA_STRUCT *data) -{ -#include LOAD_DATA_FILE_NAME -} - #ifdef HAVE_CCTK_COMPLEX8 - void LOAD_FUNCTION_NAME(c8)(const CCTK_REAL4 (*ptr)[COMPLEX_N_PARTS], + void LOAD_FUNCTION_NAME(c8)(const CCTK_REAL4 (*restrict const ptr)[COMPLEX_N_PARTS], INT_STRIDE_IJK, int part, - struct DATA_STRUCT *data) + struct DATA_STRUCT *restrict const data) { #include LOAD_DATA_FILE_NAME } #endif #ifdef HAVE_CCTK_COMPLEX16 - void LOAD_FUNCTION_NAME(c16)(const CCTK_REAL8 (*ptr)[COMPLEX_N_PARTS], + void LOAD_FUNCTION_NAME(c16)(const CCTK_REAL8 (*restrict const ptr)[COMPLEX_N_PARTS], INT_STRIDE_IJK, int part, - struct DATA_STRUCT *data) + struct DATA_STRUCT *restrict const data) { #include LOAD_DATA_FILE_NAME } #endif #ifdef HAVE_CCTK_COMPLEX32 - void LOAD_FUNCTION_NAME(c32)(const CCTK_REAL16 (*ptr)[COMPLEX_N_PARTS], + void LOAD_FUNCTION_NAME(c32)(const CCTK_REAL16 (*restrict const ptr)[COMPLEX_N_PARTS], INT_STRIDE_IJK, int part, - struct DATA_STRUCT *data) + struct DATA_STRUCT *restrict const data) { #include LOAD_DATA_FILE_NAME } |