double precision accuracy with g77
Bruno Merin Martin
bruno@laeff.esa.es
Wed Mar 20 07:11:00 GMT 2002
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
-----------------------------------------------------------------
More information about the Gcc-help
mailing list