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



"James Van Buskirk" <not_valid@xxxxxxxxxxx> writes:


C:\gfortran\james\archpi>spacing_bug
ulps1*spacing(x1) = 4.76837158E-07
rrspacing(x1) = 13176795.
scale(x1,ulps1) = 12.566371
set_exponent(x1,ulps1) = 3.1415927
ulps*spacing(x) = 2.0000000
rrspacing(x) = 3.1415927
scale(x,ulps) = 3.1415927
set_exponent(x,ulps) = 0.78539819
size(j1) = 2
size(j2) = 0
size(j3) = 3
size(j4) = 0

$ gfortran --version
GNU Fortran (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)
Copyright (C) 2007 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

$ uname -m
x86_64

$ gfortran spacing_bug.f90 && ./a.out
ulps1*spacing(x1) = 4.7683716E-07
rrspacing(x1) = 1.3176795E+07
scale(x1,ulps1) = 12.56637
set_exponent(x1,ulps1) = 3.141593
ulps*spacing(x) = 4.7683716E-07
rrspacing(x) = 1.3176795E+07
scale(x,ulps) = 12.56637
set_exponent(x,ulps) = 3.141593
size(j1) = 0
size(j2) = 131
size(j3) = 12
size(j4) = 3

So perhaps a regression, or perhaps it never worked on Win64?

Chip

--
Charles M. "Chip" Coldwell
"Turn on, log in, tune out"
GPG Key ID: 852E052F
GPG Key Fingerprint: 77E5 2B51 4907 F08A 7E92 DE80 AFA9 9A8F 852E 052F
.



Relevant Pages

  • Re: gfortran on osX
    ... download the compiler from? ... What is the version of gfortran you're trying ... GNU Fortran comes with NO WARRANTY, to the extent permitted by law. ... Apple Computer, Inc. version cctools-576.obj~23, GNU assembler version ...
    (comp.lang.fortran)
  • Re: f77 GONE! HELP
    ... Somebody has deleted these instructions. ... GNU Fortran comes with NO WARRANTY, to the extent permitted by law. ... You should have an operational gfortran by now. ... gcc version 4.0.1 ...
    (comp.lang.fortran)
  • Re: gfortran 2007 annual report
    ... any luck with gfortran for anything other than the simplest programs. ... using GNU Fortran 4.2.0 (prerelease) since December 2005 and the new AROME/HARMONIE one in operational mode using GNU Fortran 4.3.0 - since half a year. ...
    (comp.lang.fortran)
  • Re: g77-3.4, ubuntu 7.10
    ... Even here on Feisty the gfortran packages are available: ... gfortran-4.1 - The GNU Fortran 95 compiler ... gfortran-4.1-doc - Documentation for the GNU Fortran compiler (gfortran) ...
    (Ubuntu)
  • Re: Profiling Fortran 77 using gprof on linux
    ... gfortran is available only from gcc 4.0 onwards. ... Fortran is preferable to an updated gnu fortran? ... I did not know that the OP was using old Sun Fortran. ...
    (comp.lang.fortran)