Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d785f6a3
Commit
d785f6a3
authored
Apr 29, 2011
by
Janne Blomqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PR 48488 Fix comments
From-SVN: r173169
parent
f4c31037
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
libgfortran/ChangeLog
+5
-0
libgfortran/io/write.c
+11
-4
No files found.
libgfortran/ChangeLog
View file @
d785f6a3
2011-04-29 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/48488
* io/write.c (write_real, write_real_g0): Update comments.
2011-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Janne Blomqvist <jb@gcc.gnu.org>
...
...
libgfortran/io/write.c
View file @
d785f6a3
...
...
@@ -1456,10 +1456,15 @@ set_fnode_default (st_parameter_dt *dtp, fnode *f, int length)
break
;
}
}
/* Output a real number with default format.
This is 1PG14.7E2 for REAL(4), 1PG23.15E3 for REAL(8),
1PG28.19E4 for REAL(10) and 1PG43.34E4 for REAL(16). */
// FX -- FIXME: should we change the default format for __float128-real(16)?
/* Output a real number with default format. This is 1PG16.9E2 for
REAL(4), 1PG25.17E3 for REAL(8), 1PG30.21E4 for REAL(10) and
1PG45.36E4 for REAL(16). The exception is that the Fortran standard
requires outputting an extra digit when the scale factor is 1 and
when the magnitude of the value is such that E editing is
used. However, gfortran compensates for this, and thus for list
formatted the same number of significant digits is generated both
when using F and E editing. */
void
write_real
(
st_parameter_dt
*
dtp
,
const
char
*
source
,
int
length
)
...
...
@@ -1472,6 +1477,8 @@ write_real (st_parameter_dt *dtp, const char *source, int length)
dtp
->
u
.
p
.
scale_factor
=
org_scale
;
}
/* Similar to list formatted REAL output, for kPG0 where k > 0 we
compensate for the extra digit. */
void
write_real_g0
(
st_parameter_dt
*
dtp
,
const
char
*
source
,
int
length
,
int
d
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment