aboutsummaryrefslogtreecommitdiff
path: root/src/common/load-template.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/load-template.h')
-rw-r--r--src/common/load-template.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/common/load-template.h b/src/common/load-template.h
index 08cdfd4..f4b7bf3 100644
--- a/src/common/load-template.h
+++ b/src/common/load-template.h
@@ -18,26 +18,26 @@
* load-data routines for real datatypes
*/
-void LOAD_FUNCTION_NAME(r)(const CCTK_REAL *ptr,
+void LOAD_FUNCTION_NAME(r)(const CCTK_REAL *restrict ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *data);
+ struct DATA_STRUCT *restrict data);
#ifdef HAVE_CCTK_REAL4
- void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *ptr,
+ void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *restrict ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *data);
+ struct DATA_STRUCT *restrict data);
#endif
#ifdef HAVE_CCTK_REAL8
- void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *ptr,
+ void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *restrict ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *data);
+ struct DATA_STRUCT *restrict data);
#endif
#ifdef HAVE_CCTK_REAL16
- void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *ptr,
+ void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *restrict ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *data);
+ struct DATA_STRUCT *restrict data);
#endif
/******************************************************************************/
@@ -46,24 +46,24 @@ void LOAD_FUNCTION_NAME(r)(const CCTK_REAL *ptr,
* load-data routines for complex datatypes
*/
-void LOAD_FUNCTION_NAME(c)(const CCTK_REAL (*ptr)[COMPLEX_N_PARTS],
+void LOAD_FUNCTION_NAME(c)(const CCTK_REAL (*restrict ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *data);
+ struct DATA_STRUCT *restrict data);
#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 ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *data);
+ struct DATA_STRUCT *restrict data);
#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 ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *data);
+ struct DATA_STRUCT *restrict data);
#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 ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *data);
+ struct DATA_STRUCT *restrict data);
#endif