Re: Are f.p. manipulation functions only used in initialization?
- From: Charles Coldwell <coldwell@xxxxxxxxx>
- Date: Mon, 28 Apr 2008 10:46:00 GMT
"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
.
- References:
- Are f.p. manipulation functions only used in initialization?
- From: James Van Buskirk
- Are f.p. manipulation functions only used in initialization?
- Prev by Date: Re: Parallel processing on graohics chips
- Next by Date: Re: Using external subroutines in OpenMP?
- Previous by thread: Re: Are f.p. manipulation functions only used in initialization?
- Next by thread: RESULT attribute not working
- Index(es):
Relevant Pages
|
|