aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorschnetter <schnetter@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef>2012-05-18 01:18:57 +0000
committerschnetter <schnetter@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef>2012-05-18 01:18:57 +0000
commite8b8740761931233cb099057f3c11e934072c6b5 (patch)
tree36f043b810a322adf9346a28f7c45dabc2ab7293 /src/common
parent66261fe7dc204aab0d0b8a03b39a4e604a6db498 (diff)
Revert parallelisation patch
git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@56 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef
Diffstat (limited to 'src/common')
-rw-r--r--src/common/evaluate.c64
-rw-r--r--src/common/evaluate.h64
-rw-r--r--src/common/load-template.c38
-rw-r--r--src/common/load-template.h32
-rw-r--r--src/common/store.c64
-rw-r--r--src/common/store.h64
6 files changed, 170 insertions, 156 deletions
diff --git a/src/common/evaluate.c b/src/common/evaluate.c
index 3c814e4..60156b3 100644
--- a/src/common/evaluate.c
+++ b/src/common/evaluate.c
@@ -13,43 +13,43 @@
* 1-D routines
*/
-fp AEILocalInterp_eval_1dcube2(const struct coeffs_struct_1d_cube_size2 *restrict const coeffs,
- const struct data_struct_1d_cube_size2 *restrict const data)
+fp AEILocalInterp_eval_1dcube2(const struct coeffs_struct_1d_cube_size2 *coeffs,
+ const struct data_struct_1d_cube_size2 *data)
{
return
#include "1d.cube.size2/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_1dcube3(const struct coeffs_struct_1d_cube_size3 *restrict const coeffs,
- const struct data_struct_1d_cube_size3 *restrict const data)
+fp AEILocalInterp_eval_1dcube3(const struct coeffs_struct_1d_cube_size3 *coeffs,
+ const struct data_struct_1d_cube_size3 *data)
{
return
#include "1d.cube.size3/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_1dcube4(const struct coeffs_struct_1d_cube_size4 *restrict const coeffs,
- const struct data_struct_1d_cube_size4 *restrict const data)
+fp AEILocalInterp_eval_1dcube4(const struct coeffs_struct_1d_cube_size4 *coeffs,
+ const struct data_struct_1d_cube_size4 *data)
{
return
#include "1d.cube.size4/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_1dcube5(const struct coeffs_struct_1d_cube_size5 *restrict const coeffs,
- const struct data_struct_1d_cube_size5 *restrict const data)
+fp AEILocalInterp_eval_1dcube5(const struct coeffs_struct_1d_cube_size5 *coeffs,
+ const struct data_struct_1d_cube_size5 *data)
{
return
#include "1d.cube.size5/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_1dcube6(const struct coeffs_struct_1d_cube_size6 *restrict const coeffs,
- const struct data_struct_1d_cube_size6 *restrict const data)
+fp AEILocalInterp_eval_1dcube6(const struct coeffs_struct_1d_cube_size6 *coeffs,
+ const struct data_struct_1d_cube_size6 *data)
{
return
#include "1d.cube.size6/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_1dcube7(const struct coeffs_struct_1d_cube_size7 *restrict const coeffs,
- const struct data_struct_1d_cube_size7 *restrict const data)
+fp AEILocalInterp_eval_1dcube7(const struct coeffs_struct_1d_cube_size7 *coeffs,
+ const struct data_struct_1d_cube_size7 *data)
{
return
#include "1d.cube.size7/evaluate-molecule.c"
@@ -61,36 +61,36 @@ return
* 2-D routines
*/
-fp AEILocalInterp_eval_2dcube2(const struct coeffs_struct_2d_cube_size2 *restrict const coeffs,
- const struct data_struct_2d_cube_size2 *restrict const data)
+fp AEILocalInterp_eval_2dcube2(const struct coeffs_struct_2d_cube_size2 *coeffs,
+ const struct data_struct_2d_cube_size2 *data)
{
return
#include "2d.cube.size2/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_2dcube3(const struct coeffs_struct_2d_cube_size3 *restrict const coeffs,
- const struct data_struct_2d_cube_size3 *restrict const data)
+fp AEILocalInterp_eval_2dcube3(const struct coeffs_struct_2d_cube_size3 *coeffs,
+ const struct data_struct_2d_cube_size3 *data)
{
return
#include "2d.cube.size3/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_2dcube4(const struct coeffs_struct_2d_cube_size4 *restrict const coeffs,
- const struct data_struct_2d_cube_size4 *restrict const data)
+fp AEILocalInterp_eval_2dcube4(const struct coeffs_struct_2d_cube_size4 *coeffs,
+ const struct data_struct_2d_cube_size4 *data)
{
return
#include "2d.cube.size4/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_2dcube5(const struct coeffs_struct_2d_cube_size5 *restrict const coeffs,
- const struct data_struct_2d_cube_size5 *restrict const data)
+fp AEILocalInterp_eval_2dcube5(const struct coeffs_struct_2d_cube_size5 *coeffs,
+ const struct data_struct_2d_cube_size5 *data)
{
return
#include "2d.cube.size5/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_2dcube6(const struct coeffs_struct_2d_cube_size6 *restrict const coeffs,
- const struct data_struct_2d_cube_size6 *restrict const data)
+fp AEILocalInterp_eval_2dcube6(const struct coeffs_struct_2d_cube_size6 *coeffs,
+ const struct data_struct_2d_cube_size6 *data)
{
return
#include "2d.cube.size6/evaluate-molecule.c"
@@ -102,36 +102,36 @@ return
* 3-D routines
*/
-fp AEILocalInterp_eval_3dcube2(const struct coeffs_struct_3d_cube_size2 *restrict const coeffs,
- const struct data_struct_3d_cube_size2 *restrict const data)
+fp AEILocalInterp_eval_3dcube2(const struct coeffs_struct_3d_cube_size2 *coeffs,
+ const struct data_struct_3d_cube_size2 *data)
{
return
#include "3d.cube.size2/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_3dcube3(const struct coeffs_struct_3d_cube_size3 *restrict const coeffs,
- const struct data_struct_3d_cube_size3 *restrict const data)
+fp AEILocalInterp_eval_3dcube3(const struct coeffs_struct_3d_cube_size3 *coeffs,
+ const struct data_struct_3d_cube_size3 *data)
{
return
#include "3d.cube.size3/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_3dcube4(const struct coeffs_struct_3d_cube_size4 *restrict const coeffs,
- const struct data_struct_3d_cube_size4 *restrict const data)
+fp AEILocalInterp_eval_3dcube4(const struct coeffs_struct_3d_cube_size4 *coeffs,
+ const struct data_struct_3d_cube_size4 *data)
{
return
#include "3d.cube.size4/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_3dcube5(const struct coeffs_struct_3d_cube_size5 *restrict const coeffs,
- const struct data_struct_3d_cube_size5 *restrict const data)
+fp AEILocalInterp_eval_3dcube5(const struct coeffs_struct_3d_cube_size5 *coeffs,
+ const struct data_struct_3d_cube_size5 *data)
{
return
#include "3d.cube.size5/evaluate-molecule.c"
}
-fp AEILocalInterp_eval_3dcube6(const struct coeffs_struct_3d_cube_size6 *restrict const coeffs,
- const struct data_struct_3d_cube_size6 *restrict const data)
+fp AEILocalInterp_eval_3dcube6(const struct coeffs_struct_3d_cube_size6 *coeffs,
+ const struct data_struct_3d_cube_size6 *data)
{
return
#include "3d.cube.size6/evaluate-molecule.c"
diff --git a/src/common/evaluate.h b/src/common/evaluate.h
index a7c6e53..4e2046a 100644
--- a/src/common/evaluate.h
+++ b/src/common/evaluate.h
@@ -8,37 +8,37 @@
* "structs.h"
*/
-fp AEILocalInterp_eval_1dcube2(const struct coeffs_struct_1d_cube_size2 *restrict coeffs,
- const struct data_struct_1d_cube_size2 *restrict data);
-fp AEILocalInterp_eval_1dcube3(const struct coeffs_struct_1d_cube_size3 *restrict coeffs,
- const struct data_struct_1d_cube_size3 *restrict data);
-fp AEILocalInterp_eval_1dcube4(const struct coeffs_struct_1d_cube_size4 *restrict coeffs,
- const struct data_struct_1d_cube_size4 *restrict data);
-fp AEILocalInterp_eval_1dcube5(const struct coeffs_struct_1d_cube_size5 *restrict coeffs,
- const struct data_struct_1d_cube_size5 *restrict data);
-fp AEILocalInterp_eval_1dcube6(const struct coeffs_struct_1d_cube_size6 *restrict coeffs,
- const struct data_struct_1d_cube_size6 *restrict data);
-fp AEILocalInterp_eval_1dcube7(const struct coeffs_struct_1d_cube_size7 *restrict coeffs,
- const struct data_struct_1d_cube_size7 *restrict data);
+fp AEILocalInterp_eval_1dcube2(const struct coeffs_struct_1d_cube_size2 *coeffs,
+ const struct data_struct_1d_cube_size2 *data);
+fp AEILocalInterp_eval_1dcube3(const struct coeffs_struct_1d_cube_size3 *coeffs,
+ const struct data_struct_1d_cube_size3 *data);
+fp AEILocalInterp_eval_1dcube4(const struct coeffs_struct_1d_cube_size4 *coeffs,
+ const struct data_struct_1d_cube_size4 *data);
+fp AEILocalInterp_eval_1dcube5(const struct coeffs_struct_1d_cube_size5 *coeffs,
+ const struct data_struct_1d_cube_size5 *data);
+fp AEILocalInterp_eval_1dcube6(const struct coeffs_struct_1d_cube_size6 *coeffs,
+ const struct data_struct_1d_cube_size6 *data);
+fp AEILocalInterp_eval_1dcube7(const struct coeffs_struct_1d_cube_size7 *coeffs,
+ const struct data_struct_1d_cube_size7 *data);
-fp AEILocalInterp_eval_2dcube2(const struct coeffs_struct_2d_cube_size2 *restrict coeffs,
- const struct data_struct_2d_cube_size2 *restrict data);
-fp AEILocalInterp_eval_2dcube3(const struct coeffs_struct_2d_cube_size3 *restrict coeffs,
- const struct data_struct_2d_cube_size3 *restrict data);
-fp AEILocalInterp_eval_2dcube4(const struct coeffs_struct_2d_cube_size4 *restrict coeffs,
- const struct data_struct_2d_cube_size4 *restrict data);
-fp AEILocalInterp_eval_2dcube5(const struct coeffs_struct_2d_cube_size5 *restrict coeffs,
- const struct data_struct_2d_cube_size5 *restrict data);
-fp AEILocalInterp_eval_2dcube6(const struct coeffs_struct_2d_cube_size6 *restrict coeffs,
- const struct data_struct_2d_cube_size6 *restrict data);
+fp AEILocalInterp_eval_2dcube2(const struct coeffs_struct_2d_cube_size2 *coeffs,
+ const struct data_struct_2d_cube_size2 *data);
+fp AEILocalInterp_eval_2dcube3(const struct coeffs_struct_2d_cube_size3 *coeffs,
+ const struct data_struct_2d_cube_size3 *data);
+fp AEILocalInterp_eval_2dcube4(const struct coeffs_struct_2d_cube_size4 *coeffs,
+ const struct data_struct_2d_cube_size4 *data);
+fp AEILocalInterp_eval_2dcube5(const struct coeffs_struct_2d_cube_size5 *coeffs,
+ const struct data_struct_2d_cube_size5 *data);
+fp AEILocalInterp_eval_2dcube6(const struct coeffs_struct_2d_cube_size6 *coeffs,
+ const struct data_struct_2d_cube_size6 *data);
-fp AEILocalInterp_eval_3dcube2(const struct coeffs_struct_3d_cube_size2 *restrict coeffs,
- const struct data_struct_3d_cube_size2 *restrict data);
-fp AEILocalInterp_eval_3dcube3(const struct coeffs_struct_3d_cube_size3 *restrict coeffs,
- const struct data_struct_3d_cube_size3 *restrict data);
-fp AEILocalInterp_eval_3dcube4(const struct coeffs_struct_3d_cube_size4 *restrict coeffs,
- const struct data_struct_3d_cube_size4 *restrict data);
-fp AEILocalInterp_eval_3dcube5(const struct coeffs_struct_3d_cube_size5 *restrict coeffs,
- const struct data_struct_3d_cube_size5 *restrict data);
-fp AEILocalInterp_eval_3dcube6(const struct coeffs_struct_3d_cube_size6 *restrict coeffs,
- const struct data_struct_3d_cube_size6 *restrict data);
+fp AEILocalInterp_eval_3dcube2(const struct coeffs_struct_3d_cube_size2 *coeffs,
+ const struct data_struct_3d_cube_size2 *data);
+fp AEILocalInterp_eval_3dcube3(const struct coeffs_struct_3d_cube_size3 *coeffs,
+ const struct data_struct_3d_cube_size3 *data);
+fp AEILocalInterp_eval_3dcube4(const struct coeffs_struct_3d_cube_size4 *coeffs,
+ const struct data_struct_3d_cube_size4 *data);
+fp AEILocalInterp_eval_3dcube5(const struct coeffs_struct_3d_cube_size5 *coeffs,
+ const struct data_struct_3d_cube_size5 *data);
+fp AEILocalInterp_eval_3dcube6(const struct coeffs_struct_3d_cube_size6 *coeffs,
+ const struct data_struct_3d_cube_size6 *data);
diff --git a/src/common/load-template.c b/src/common/load-template.c
index 5e197f7..5caa23b 100644
--- a/src/common/load-template.c
+++ b/src/common/load-template.c
@@ -16,28 +16,35 @@
#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 *restrict const ptr,
+ void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *restrict const data)
+ struct DATA_STRUCT *data)
{
#include LOAD_DATA_FILE_NAME
}
#endif
#ifdef HAVE_CCTK_REAL8
- void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *restrict const ptr,
+ void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *restrict const data)
+ struct DATA_STRUCT *data)
{
#include LOAD_DATA_FILE_NAME
}
#endif
#ifdef HAVE_CCTK_REAL16
- void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *restrict const ptr,
+ void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *restrict const data)
+ struct DATA_STRUCT *data)
{
#include LOAD_DATA_FILE_NAME
}
@@ -52,28 +59,35 @@
#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 (*restrict const ptr)[COMPLEX_N_PARTS],
+ void LOAD_FUNCTION_NAME(c8)(const CCTK_REAL4 (*ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *restrict const data)
+ struct DATA_STRUCT *data)
{
#include LOAD_DATA_FILE_NAME
}
#endif
#ifdef HAVE_CCTK_COMPLEX16
- void LOAD_FUNCTION_NAME(c16)(const CCTK_REAL8 (*restrict const ptr)[COMPLEX_N_PARTS],
+ void LOAD_FUNCTION_NAME(c16)(const CCTK_REAL8 (*ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *restrict const data)
+ struct DATA_STRUCT *data)
{
#include LOAD_DATA_FILE_NAME
}
#endif
#ifdef HAVE_CCTK_COMPLEX32
- void LOAD_FUNCTION_NAME(c32)(const CCTK_REAL16 (*restrict const ptr)[COMPLEX_N_PARTS],
+ void LOAD_FUNCTION_NAME(c32)(const CCTK_REAL16 (*ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *restrict const data)
+ struct DATA_STRUCT *data)
{
#include LOAD_DATA_FILE_NAME
}
diff --git a/src/common/load-template.h b/src/common/load-template.h
index f4b7bf3..08cdfd4 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 *restrict ptr,
+void LOAD_FUNCTION_NAME(r)(const CCTK_REAL *ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *restrict data);
+ struct DATA_STRUCT *data);
#ifdef HAVE_CCTK_REAL4
- void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *restrict ptr,
+ void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *restrict data);
+ struct DATA_STRUCT *data);
#endif
#ifdef HAVE_CCTK_REAL8
- void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *restrict ptr,
+ void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *restrict data);
+ struct DATA_STRUCT *data);
#endif
#ifdef HAVE_CCTK_REAL16
- void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *restrict ptr,
+ void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *ptr,
INT_STRIDE_IJK,
- struct DATA_STRUCT *restrict data);
+ struct DATA_STRUCT *data);
#endif
/******************************************************************************/
@@ -46,24 +46,24 @@ void LOAD_FUNCTION_NAME(r)(const CCTK_REAL *restrict ptr,
* load-data routines for complex datatypes
*/
-void LOAD_FUNCTION_NAME(c)(const CCTK_REAL (*restrict ptr)[COMPLEX_N_PARTS],
+void LOAD_FUNCTION_NAME(c)(const CCTK_REAL (*ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *restrict data);
+ struct DATA_STRUCT *data);
#ifdef HAVE_CCTK_COMPLEX8
- void LOAD_FUNCTION_NAME(c8)(const CCTK_REAL4 (*restrict ptr)[COMPLEX_N_PARTS],
+ void LOAD_FUNCTION_NAME(c8)(const CCTK_REAL4 (*ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *restrict data);
+ struct DATA_STRUCT *data);
#endif
#ifdef HAVE_CCTK_COMPLEX16
- void LOAD_FUNCTION_NAME(c16)(const CCTK_REAL8 (*restrict ptr)[COMPLEX_N_PARTS],
+ void LOAD_FUNCTION_NAME(c16)(const CCTK_REAL8 (*ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *restrict data);
+ struct DATA_STRUCT *data);
#endif
#ifdef HAVE_CCTK_COMPLEX32
- void LOAD_FUNCTION_NAME(c32)(const CCTK_REAL16 (*restrict ptr)[COMPLEX_N_PARTS],
+ void LOAD_FUNCTION_NAME(c32)(const CCTK_REAL16 (*ptr)[COMPLEX_N_PARTS],
INT_STRIDE_IJK, int part,
- struct DATA_STRUCT *restrict data);
+ struct DATA_STRUCT *data);
#endif
diff --git a/src/common/store.c b/src/common/store.c
index 1d414fe..3ed6003 100644
--- a/src/common/store.c
+++ b/src/common/store.c
@@ -17,48 +17,48 @@
#define COEFF(mi) Jacobian_ptr[Jacobian_mi_stride*mi]
void AEILocalInterp_store_1dcube2
- (fp factor, const struct coeffs_struct_1d_cube_size2 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size2 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride)
{
#include "1d.cube.size2/store-coeffs.c"
}
void AEILocalInterp_store_1dcube3
- (fp factor, const struct coeffs_struct_1d_cube_size3 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size3 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride)
{
#include "1d.cube.size3/store-coeffs.c"
}
void AEILocalInterp_store_1dcube4
- (fp factor, const struct coeffs_struct_1d_cube_size4 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size4 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride)
{
#include "1d.cube.size4/store-coeffs.c"
}
void AEILocalInterp_store_1dcube5
- (fp factor, const struct coeffs_struct_1d_cube_size5 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size5 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride)
{
#include "1d.cube.size5/store-coeffs.c"
}
void AEILocalInterp_store_1dcube6
- (fp factor, const struct coeffs_struct_1d_cube_size6 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size6 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride)
{
#include "1d.cube.size6/store-coeffs.c"
}
void AEILocalInterp_store_1dcube7
- (fp factor, const struct coeffs_struct_1d_cube_size7 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size7 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride)
{
#include "1d.cube.size7/store-coeffs.c"
@@ -75,40 +75,40 @@ void AEILocalInterp_store_1dcube7
+ Jacobian_mj_stride*mj ]
void AEILocalInterp_store_2dcube2
- (fp factor, const struct coeffs_struct_2d_cube_size2 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size2 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride)
{
#include "2d.cube.size2/store-coeffs.c"
}
void AEILocalInterp_store_2dcube3
- (fp factor, const struct coeffs_struct_2d_cube_size3 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size3 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride)
{
#include "2d.cube.size3/store-coeffs.c"
}
void AEILocalInterp_store_2dcube4
- (fp factor, const struct coeffs_struct_2d_cube_size4 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size4 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride)
{
#include "2d.cube.size4/store-coeffs.c"
}
void AEILocalInterp_store_2dcube5
- (fp factor, const struct coeffs_struct_2d_cube_size5 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size5 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride)
{
#include "2d.cube.size5/store-coeffs.c"
}
void AEILocalInterp_store_2dcube6
- (fp factor, const struct coeffs_struct_2d_cube_size6 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size6 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride)
{
#include "2d.cube.size6/store-coeffs.c"
@@ -126,40 +126,40 @@ void AEILocalInterp_store_2dcube6
+ Jacobian_mk_stride*mk ]
void AEILocalInterp_store_3dcube2
- (fp factor, const struct coeffs_struct_3d_cube_size2 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size2 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride)
{
#include "3d.cube.size2/store-coeffs.c"
}
void AEILocalInterp_store_3dcube3
- (fp factor, const struct coeffs_struct_3d_cube_size3 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size3 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride)
{
#include "3d.cube.size3/store-coeffs.c"
}
void AEILocalInterp_store_3dcube4
- (fp factor, const struct coeffs_struct_3d_cube_size4 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size4 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride)
{
#include "3d.cube.size4/store-coeffs.c"
}
void AEILocalInterp_store_3dcube5
- (fp factor, const struct coeffs_struct_3d_cube_size5 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size5 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride)
{
#include "3d.cube.size5/store-coeffs.c"
}
void AEILocalInterp_store_3dcube6
- (fp factor, const struct coeffs_struct_3d_cube_size6 *restrict const coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size6 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride)
{
#include "3d.cube.size6/store-coeffs.c"
diff --git a/src/common/store.h b/src/common/store.h
index 678d663..e042552 100644
--- a/src/common/store.h
+++ b/src/common/store.h
@@ -9,68 +9,68 @@
*/
void AEILocalInterp_store_1dcube2
- (fp factor, const struct coeffs_struct_1d_cube_size2 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size2 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride);
void AEILocalInterp_store_1dcube3
- (fp factor, const struct coeffs_struct_1d_cube_size3 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size3 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride);
void AEILocalInterp_store_1dcube4
- (fp factor, const struct coeffs_struct_1d_cube_size4 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size4 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride);
void AEILocalInterp_store_1dcube5
- (fp factor, const struct coeffs_struct_1d_cube_size5 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size5 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride);
void AEILocalInterp_store_1dcube6
- (fp factor, const struct coeffs_struct_1d_cube_size6 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size6 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride);
void AEILocalInterp_store_1dcube7
- (fp factor, const struct coeffs_struct_1d_cube_size7 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_1d_cube_size7 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride);
void AEILocalInterp_store_2dcube2
- (fp factor, const struct coeffs_struct_2d_cube_size2 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size2 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride);
void AEILocalInterp_store_2dcube3
- (fp factor, const struct coeffs_struct_2d_cube_size3 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size3 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride);
void AEILocalInterp_store_2dcube4
- (fp factor, const struct coeffs_struct_2d_cube_size4 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size4 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride);
void AEILocalInterp_store_2dcube5
- (fp factor, const struct coeffs_struct_2d_cube_size5 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size5 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride);
void AEILocalInterp_store_2dcube6
- (fp factor, const struct coeffs_struct_2d_cube_size6 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_2d_cube_size6 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride);
void AEILocalInterp_store_3dcube2
- (fp factor, const struct coeffs_struct_3d_cube_size2 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size2 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride);
void AEILocalInterp_store_3dcube3
- (fp factor, const struct coeffs_struct_3d_cube_size3 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size3 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride);
void AEILocalInterp_store_3dcube4
- (fp factor, const struct coeffs_struct_3d_cube_size4 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size4 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride);
void AEILocalInterp_store_3dcube5
- (fp factor, const struct coeffs_struct_3d_cube_size5 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size5 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride);
void AEILocalInterp_store_3dcube6
- (fp factor, const struct coeffs_struct_3d_cube_size6 *restrict coeffs,
- fp *restrict Jacobian_ptr,
+ (fp factor, const struct coeffs_struct_3d_cube_size6 *coeffs,
+ fp Jacobian_ptr[],
int Jacobian_mi_stride, int Jacobian_mj_stride, int Jacobian_mk_stride);