This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


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

Re: multimin question


Assuming this is on intel, adding a call gsl_ieee_env_setup() and
running the test program with GSL_IEEE_MODE=double-precision will
avoid the use of extended-precision registers. Declaring the relevant
variables "volatile" should have the same effect. This will let you
test your theory for any -O level.

If extended precision is the problem then the simplest workaround is
"volatile", with a comment explaining why it is needed.

Fabrice Rossi writes:

 > This is really beyond my understanding of compilers and of ieee
 > floating point representation... I guess it might be related to the
 > fact that registers store floating with a higher precision than
 > requested by ieee. Anyway, I don't know what to do and I really
 > need help on this point.
 >  Fabrice Rossi


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