Re: [Rd] precision when calling a C function; presence of Fortran call

From: Benjamin Tyner <btyner_at_stat.purdue.edu>
Date: Tue 19 Dec 2006 - 22:28:47 GMT

Thanks! It seems the 'volatile' declaration is exactly what was needed.

Ben

Prof Brian Ripley wrote:
> In C, declaring a value as 'volatile' should force it to be stored in
> a 64-bit memory location. There is no known way to do this in Fortran:
> compilers and numeric software have been playing leapfrog games for
> years.
> What you can do with gcc (the compiler collection) is to compile a
> module with -ffloat-store, as we do with dlamc.f.
>



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Dec 20 23:52:47 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 20 Dec 2006 - 18:31:03 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.