From: Robert Harley <harley@corton.inria.fr>
Subject: Re: optimized (or optimizable) C programming?
Date: 1999/10/05 [thread overview]
Message-ID: <rz71zb9vs06.fsf@corton.inria.fr> (raw)
In-Reply-To: 37F8AC50.13AA8F7D@ife.ee.ethz.ch
Alex Rhomberg <rhomberg@ife.ee.ethz.ch> writes:
> void test2 (double *fmat_lin, const double *x, const double *dhdX0_lin)
If you know that fmat_lin doesn't overlap with the others you can mark
it with __restrict in ccc and in the latest gcc.
#if defined(__DECC) || defined(__GNUC__) && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 95)
#define RESTRICT __restrict
#else
#define RESTRICT
#endif
void test2
( double * RESTRICT fmat_lin, const double *x, const double *dhdX0_lin ) {
...;
} /* end function test2 */
Rob.
next prev parent reply other threads:[~1999-10-05 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-04 4:00 optimized (or optimizable) C programming? Alex Rhomberg
1999-10-04 4:00 ` Greg Lindahl
1999-10-05 4:00 ` Robert Harley [this message]
1999-10-05 4:00 ` Alex Rhomberg
1999-10-05 4:00 ` ccc code wierdness Alex Rhomberg
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox