diff options
author | rhaas <rhaas@8e189c6b-2ab8-4400-aa02-70a9cfce18b9> | 2014-03-13 03:01:36 +0000 |
---|---|---|
committer | rhaas <rhaas@8e189c6b-2ab8-4400-aa02-70a9cfce18b9> | 2014-03-13 03:01:36 +0000 |
commit | 26f8012d7fdee517dc85e80ff9d32402e0ffa19d (patch) | |
tree | b9e4a6f37aa0f814efdbc72a594075e1d091d0aa | |
parent | 4618ab0f6c94062c1542219601b698e3aaf41260 (diff) |
EOS_Omni: remove __restrict__ in favor of restrict since Cactus handles
restrict for us.
From: Roland Haas <rhaas@tapir.caltech.edu>
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@95 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
-rw-r--r-- | src/nuc_eos_cxx/helpers.hh | 37 | ||||
-rw-r--r-- | src/nuc_eos_cxx/nuc_eos.hh | 1 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/nuc_eos_cxx/helpers.hh b/src/nuc_eos_cxx/helpers.hh index c61ae80..f8537b4 100644 --- a/src/nuc_eos_cxx/helpers.hh +++ b/src/nuc_eos_cxx/helpers.hh @@ -28,6 +28,7 @@ int checkbounds(const double xrho, return 101; } if(xye < eos_yemin) { + // this is probably not pure and should be removed fprintf(stderr,"xye: %15.6E eos_yemin: %15.6E\n",xye,eos_yemin); return 102; } @@ -72,10 +73,10 @@ static inline __attribute__((always_inline)) void get_interp_spots(const double x, const double y, const double z, - double* __restrict__ delx, - double* __restrict__ dely, - double* __restrict__ delz, - int* __restrict__ idx) + double* restrict delx, + double* restrict dely, + double* restrict delz, + int* restrict idx) { using namespace nuc_eos; @@ -108,10 +109,10 @@ static inline __attribute__((always_inline)) void get_interp_spots_linT_low(const double x, const double y, const double z, - double* __restrict__ delx, - double* __restrict__ dely, - double* __restrict__ delz, - int* __restrict__ idx) + double* restrict delx, + double* restrict dely, + double* restrict delz, + int* restrict idx) { using namespace nuc_eos; @@ -143,10 +144,10 @@ static inline __attribute__((always_inline)) void get_interp_spots_linT_low_eps(const double x, const double y, const double z, - double* __restrict__ delx, - double* __restrict__ dely, - double* __restrict__ delz, - int* __restrict__ idx) + double* restrict delx, + double* restrict dely, + double* restrict delz, + int* restrict idx) { using namespace nuc_eos; @@ -176,11 +177,11 @@ void get_interp_spots_linT_low_eps(const double x, static inline __attribute__((always_inline)) -void nuc_eos_C_linterp_one(const int* __restrict__ idx, +void nuc_eos_C_linterp_one(const int* restrict idx, const double delx, const double dely, const double delz, - double* __restrict__ f, + double* restrict f, const int iv) { using namespace nuc_eos; @@ -221,11 +222,11 @@ void nuc_eos_C_linterp_one(const int* __restrict__ idx, } static inline __attribute__((always_inline)) -void nuc_eos_C_linterp_one_linT_low(const int* __restrict__ idx, +void nuc_eos_C_linterp_one_linT_low(const int* restrict idx, const double delx, const double dely, const double delz, - double* __restrict__ f, + double* restrict f, const int iv) { using namespace nuc_eos; @@ -267,11 +268,11 @@ void nuc_eos_C_linterp_one_linT_low(const int* __restrict__ idx, static inline __attribute__((always_inline)) -void nuc_eos_C_linterp_one_linT_low_eps(const int* __restrict__ idx, +void nuc_eos_C_linterp_one_linT_low_eps(const int* restrict idx, const double delx, const double dely, const double delz, - double* __restrict__ f) + double* restrict f) { using namespace nuc_eos; diff --git a/src/nuc_eos_cxx/nuc_eos.hh b/src/nuc_eos_cxx/nuc_eos.hh index 8149803..8c54761 100644 --- a/src/nuc_eos_cxx/nuc_eos.hh +++ b/src/nuc_eos_cxx/nuc_eos.hh @@ -13,7 +13,6 @@ #define INVRHOGF 6.17714470405638e17 #define INVEPSGF 8.98755178736818e20 #define INVPRESSGF 5.55174079257738e38 -#define restrict __restrict__ namespace nuc_eos { |