[fitsbits] 64-bit integers

Clive Page cgp at star.le.ac.uk
Wed May 4 13:38:47 EDT 2005


On Wed, 4 May 2005, Eric Greisen wrote:

> In testing for aips implementation I discovered that the HP Fortran
> compilers will not accept INTEGER*8 but the the IBM (Mac), GNU (Linux)
> and SUN (Solaris Ultra) all accept that statement and do the right
> things.

Just in case everybody doesn't know this, can I point out that INTEGER*8
isn't (and has never been) valid Fortran, just a fairly common extension
to the various standards.  So it may be that HP Fortran really doesn't
support 64-bit integers, but a better test would be to try something like

  integer(kind=selected_int_kind(16)) :: variable

and see if that compiles [the '16' is the number of decimal digits
to be supported].

-- 
Clive Page
Dept of Physics & Astronomy,
University of Leicester,    Tel +44 116 252 3551
Leicester, LE1 7RH,  U.K.   Fax +44 116 252 3311



More information about the fitsbits mailing list