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: 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)
  • Re: missing include by compiler
    ... >> What compilers and what include syntax? ... > By ifort and absoft the include statement does not work as supposed. ... Can you post some sample syntax? ...
    (comp.lang.fortran)
  • Re: Portable isfinite for gfortran 4.0.3 and ifort 8.1/9.0
    ... following three compilers ... gfortran 4.0.3, ifort 8.1, and ifort 9.0 ... You probably want to upgrade to at least gfortran 4.1.1. ... optimization flags. ...
    (comp.lang.fortran)