Re: [AMBER-Developers] Anyone use restricted pointers in C?

From: Volodymyr Babin <vbabin.ncsu.edu>
Date: Mon, 29 Aug 2011 12:06:45 -0400

Hi Dave,

in my (limited) experience restrict is typically supported by any reasonable
c/c++ compilers. You may find a fragment discussing AC_C_RESTRICT from
http://www.gnu.org/s/hello/manual/autoconf/C-Compiler.html useful.

Have a nice day!

Volodymyr

On Mon, Aug 29, 2011 at 11:42 AM, <dcerutti.rci.rutgers.edu> wrote:

> Hello,
>
> I was poking around this morning trying to make some of the mdgx routines
> go faster, but my compilers are complaining if I use something like
>
> int IsCentralAtom(double *restrict corig, double *restrict ccen,
> double *restrict atmloc, dmat U, int *restrict ng)
> {
> <function statements>
> }
>
> The emacs editor recognizes restrict as a reserved keyword in C, but both
> gcc and icc compilers tell me that they expect a ")" after "restrict" and
> treat it like the name of an argument. Any help appreciated!
>
> Dave
>
>
> _______________________________________________
> AMBER-Developers mailing list
> AMBER-Developers.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber-developers
>
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Mon Aug 29 2011 - 09:30:02 PDT
Custom Search