Re: Are f.p. manipulation functions only used in initialization?



In article <m2wsmj1mh2.fsf@xxxxxxxxx>,
Charles Coldwell <coldwell@xxxxxxxxx> wrote:

The comment next to _FPU_EXTENDED should be written in a bold,
blinking, red font. You will screw up all of the libm routines (such
as cos, sin, exp, log) if you change the FPU precision.

Since many fortran compilers allow you to manipulate the x87
precision, I don't think this is the case -- one commonly used
commercial compiler sets it to 64 bits *by default*.

If you want exact IEEE answers, this is only one of many things you
need to worry about.

Also, the x87 is used a lot less on x86-64 than x86.

I've also seen comments that glibc's libm only works in 1 rounding
mode. That is changed a lot less frequently than the x87 precision.

-- greg



.



Relevant Pages

  • Re: surprising behaviour of .EQ.
    ... The only problem that those "4 other compilers" use x87 instead of SSE ... for floating point calculations. ... extra precision that, for many numerical methods, would give the users the ...
    (comp.lang.fortran)
  • Re: status of quadruple precision arithmetic in g95 and gfortran?
    ... the discrepancy between the simple sum and what should be ... x87 implementations are well known for inconsistent use. ... the instruction to set the precision mode flag in the x87 ... we were talking about consistent precision. ...
    (comp.lang.fortran)
  • Re: Precision of literal real constants, parameters, and Fortran ?standard
    ... easy to reduce the precision of a value in an internal register. ... Before x87, most compiler writers were pretty good about doing ... single precision work in single precision, ... compilers won't do that unless requested. ...
    (comp.lang.fortran)
  • Re: status of quadruple precision arithmetic in g95 and gfortran?
    ... the discrepancy between the simple sum and what should be ... x87 implementations are well known for inconsistent use. ... the instruction to set the precision mode flag in the x87 ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)