From 8ae7bb244a317b816c2160bac43f40739f5a482f Mon Sep 17 00:00:00 2001 From: eschnett Date: Thu, 9 Aug 2012 20:00:55 +0000 Subject: Replace CCTK_RESTRICT by restrict git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@85 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8 --- src/slab.cc | 2 +- src/slab.h | 68 ++++++++++++++++++++++++++++++------------------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/slab.cc b/src/slab.cc index a21ee4e..219f6d5 100644 --- a/src/slab.cc +++ b/src/slab.cc @@ -1084,7 +1084,7 @@ Slab_MultiTransfer_Init CCTK_TimerStartI (timer_init); - slabsetup * CCTK_RESTRICT const slabsetup = new struct slabsetup; + slabsetup * restrict const slabsetup = new struct slabsetup; diff --git a/src/slab.h b/src/slab.h index e8c1855..9718c42 100644 --- a/src/slab.h +++ b/src/slab.h @@ -91,12 +91,12 @@ struct xferinfo { }; void -print_slabinfo (FILE * const out, - struct slabinfo const * CCTK_RESTRICT const slabinfo); +print_slabinfo (FILE * const out, + struct slabinfo const * restrict const slabinfo); void -print_xferinfo (FILE * const out, - struct xferinfo const * CCTK_RESTRICT const xferinfo); +print_xferinfo (FILE * const out, + struct xferinfo const * restrict const xferinfo); @@ -104,48 +104,48 @@ struct slabsetup; struct slabsetup * Slab_MultiTransfer_Init -(cGH const * CCTK_RESTRICT const cctkGH, - int const dim, - struct xferinfo const * CCTK_RESTRICT const xferinfo, - int const options); +(cGH const * restrict const cctkGH, + int const dim, + struct xferinfo const * restrict const xferinfo, + int const options); int Slab_MultiTransfer_Apply -(cGH const * CCTK_RESTRICT const cctkGH, - struct slabsetup const * CCTK_RESTRICT const slabsetup, - int const nvars, - int const * CCTK_RESTRICT const srctypes, - void const * CCTK_RESTRICT const * CCTK_RESTRICT const srcptrs, - int const * CCTK_RESTRICT const dsttypes, - void * CCTK_RESTRICT const * CCTK_RESTRICT const dstptrs); +(cGH const * restrict const cctkGH, + struct slabsetup const * restrict const slabsetup, + int const nvars, + int const * restrict const srctypes, + void const * restrict const * restrict const srcptrs, + int const * restrict const dsttypes, + void * restrict const * restrict const dstptrs); int Slab_MultiTransfer_Finalize -(cGH const * CCTK_RESTRICT const cctkGH, - struct slabsetup * CCTK_RESTRICT const slabsetup); +(cGH const * restrict const cctkGH, + struct slabsetup * restrict const slabsetup); int Slab_MultiTransfer -(cGH const * CCTK_RESTRICT const cctkGH, - int const dim, - struct xferinfo const * CCTK_RESTRICT const xferinfo, - int const options, - int const nvars, - int const * CCTK_RESTRICT const srctypes, - void const * CCTK_RESTRICT const * CCTK_RESTRICT const srcptrs, - int const * CCTK_RESTRICT const dsttypes, - void * CCTK_RESTRICT const * CCTK_RESTRICT const dstptrs); +(cGH const * restrict const cctkGH, + int const dim, + struct xferinfo const * restrict const xferinfo, + int const options, + int const nvars, + int const * restrict const srctypes, + void const * restrict const * restrict const srcptrs, + int const * restrict const dsttypes, + void * restrict const * restrict const dstptrs); int Slab_Transfer -(cGH const * CCTK_RESTRICT const cctkGH, - int const dim, - struct xferinfo const * CCTK_RESTRICT const xferinfo, - int const options, - int const srctype, - void const * CCTK_RESTRICT const srcptr, - int const dsttype, - void * CCTK_RESTRICT const dstptr); +(cGH const * restrict const cctkGH, + int const dim, + struct xferinfo const * restrict const xferinfo, + int const options, + int const srctype, + void const * restrict const srcptr, + int const dsttype, + void * restrict const dstptr); #ifdef __cplusplus } -- cgit v1.2.3