Portable isfinite for gfortran 4.0.3 and ifort 8.1/9.0



Dear gurus

I am looking for an implementation of isfinite that works on the
following three compilers

gfortran 4.0.3, ifort 8.1, and ifort 9.0

I do not use the -fastmath flag when compiling, but I do use the
optimization flags. what is the simplest failproof way to do the test?

Niels

BTW: Is it possible to determine the name of the compiler from inside
the code?

.



Relevant Pages

  • Re: Symbols in function return specifiers
    ... END FUNCTION test ... I tested the example with 3 compilers (g95, ... g95 and gfortran compile the two cases without any warning, ... ifort compiles only when the type of the function is declared ...
    (comp.lang.fortran)
  • Re: Symbols in function return specifiers
    ... END FUNCTION test ... I tested the example with 3 compilers (g95, ... g95 and gfortran compile the two cases without any warning, ... ifort compiles only when the type of the function is declared ...
    (comp.lang.fortran)
  • Re: Zero-size arrays
    ... were also found in ifort, gfortran, pathscale and some more which I do ... and commercial compilers in this regard; ... Fortran 90/95, but with configure check also things like Fortran ...
    (comp.lang.fortran)
  • Re: Zero-size arrays
    ... were also found in ifort, gfortran, pathscale and some more which I do ... and commercial compilers in this regard; ... Fortran 90/95, but with configure check also things like Fortran ...
    (comp.lang.fortran)
  • Intel fortran (em64t) very low-accuracy results on x86_64
    ... I have a rather long experience with scientific fortran programming ... Recently I noticed the following problem with intel fortran em64t ... Pentimum 4 using intel 32-bit compilers ... while mainly I compile my code with ifort and MKL. ...
    (comp.lang.fortran)