Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michael J. Donahue <donahue@ulexite.nist.gov>
Subject: Re: Fortran compiler for Linux/Alpha
Date: Thu, 17 Oct 1996 11:44:29 -0400	[thread overview]
Message-ID: <b46204f9beebf932700c95c9f902e0bc.axp-list@archive.invalid> (raw)

I wrote earlier:
>I don't know if this is related, but I have a double-precision FFT
>fortran code that only seems to produce single-precision results (as
>compared to output from SGI and Digital Unix f77 compilers) using f2c
>on Linux-x86.  I haven't tried to track it down.

Just a follow-up that may be of interest to f2c users.  The fortran
code

      IMPLICIT DOUBLE PRECISION (A - H)
      c72=0.30901699437494742

yields the following C code under f2c:

    static doublereal c72;
    c72 =(float).30901699437494742;

Why "float"?  However, the following fortran source fixes the problem:

      c72=DBLE(0.30901699437494742)

-mike
michael.donahue@nist.gov

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

             reply	other threads:[~1996-10-17 15:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-17 15:44 Michael J. Donahue [this message]
     [not found] <199610180524.BAA08287@rrdjazz.nist.gov>
1996-10-18 12:47 ` Fortran compiler for Linux/Alpha Ulf Griesmann
  -- strict thread matches above, loose matches on Subject: below --
1996-10-18  5:24 Przemek Klosowski
1996-10-17 18:25 Toon Moene
1996-10-17 16:59 Craig Burley
     [not found] <199610162150.OAA23968@topanga.arete.com>
1996-10-17 12:15 ` Jim Nance
1996-10-17 17:41   ` Dwight Hogge
1996-10-17 18:39     ` Jim Nance
1996-10-16 23:18 Michael J. Donahue
     [not found] <Pine.LNX.3.91.961016103053.15626A-100000@zen.linpro.no>
1996-10-16 21:50 ` Dwight Hogge
1996-10-16 22:56 ` Scott Locklin ESG
1996-10-21  8:16 ` Nigel Sale
1996-10-16  8:45 Robert Rødsten
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox