<div class="gmail_quote">On Fri, May 13, 2011 at 04:43, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
 On occasion the same options in petscconf.h don't work for both C and C++ compilers, for example for __intel_fast_memcpy().</blockquote><div><br></div><div>This is just insane, but I thought the compiler automatically expanded normal memcpy to __intel_fast_memcpy. I just checked and my Intel C and C++ compilers (versions 10 and 11) do this automatically at -O2 and above. Should PETSc ever be calling it directly?</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">  Should we instead generate three files one for each language?</blockquote></div><br><div>If it's really necessary, why not put both in the same header guarded by #ifdef __cplusplus ?</div>