This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

double precision accuracy with g77


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
-----------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]