This is the mail archive of the
mailing list for the GCC project.
- To: gcc at gcc dot gnu dot org
- Subject: _FP_SETCW()
- From: Philippe Després <p0663835 at magellan dot umontreal dot ca>
- Date: Tue, 08 May 2001 13:35:40 -0400
anyone know how to set the control word from fpu_control.h to obtain a
floating point behavior like the one on Windows (VC++), i.e. that for a
printf("%20.20f",x); on windows gives
x=0.98006657784124163000 (zeros after the 17th digit)
on linux, those zeros are filled with something else and my results
depends on this...
Actually, I use
fp_ctrl=(_FPU_DEFAULT & ~ _FPU_EXTENDED)|_FPU_DOUBLE;