What is the typical user-defined logic which is executed after FE_INEXACT is raised?

171 views Asked by At

I more or less understand / imagine the typical user-defined logic which is executed:

  • after FE_OVERFLOW or FE_UNDERFLOW is raised: not critical case: try to recover by, for example, adjusting some values / coefficients and redo the computations;
  • after FE_INVALID or FE_DIVBYZERO is raised: critical case: stop the machine OR reboot the machine.

However, what is the typical user-defined logic which is executed after FE_INEXACT is raised? Any examples, experiences, best practices?

Extra: In presentation «Beyond Floating Point: Next-Generation Computer Arithmetic» John L. Gustafson provides the following opinion (page 5):

the “inexact” flag is useless

Any comments / views on this opinion?

0

There are 0 answers