This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
double precision accuracy with g77
- From: Bruno Merin Martin <bruno at laeff dot esa dot es>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 20 Mar 2002 16:10:45 +0100
- Subject: double precision accuracy with g77
- Organization: LAEFF-INTA
Hello,
I am porting a big fortran code from sun (solaris)
to PCs running linux (much faster). I have tried the -ffloat-store
option and some other things to get the same precision as with
the suns but I couldn't get the programs yielding the same
numbers up to the fifth decimal position as I need.
I don't know how to compile and link this
#include </usr/include/fpu_control.h>
{
fpu_control_t cw = (_FPU_DEFAULT & ~_FPU_EXTENDED) | _FPU_DOUBLE;
_FPU_SETCW(cw);
}
with my programs and I don't know also if this will
help. Could you please tell me if I there is something different
that would work better for me?
Thank you very much.
Bruno.
-----------------------------------------------------------------
Bruno Merin Martin e-mail: bruno@laeff.esa.es
Laboratorio de Astrofisica Espacial y phone: (34)-91-8131194
Fisica Fundamental - INTA fax: (34)-91-8131160
PO Box 50727, E-28080 Madrid. Spain
-----------------------------------------------------------------