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
b10cf173
Commit
b10cf173
authored
Nov 21, 2004
by
Roger Sayle
Committed by
Roger Sayle
Nov 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* io/write.c (write_float, list_formatted_write): Fix indentation.
From-SVN: r90975
parent
484d0bd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
57 deletions
+60
-57
libgfortran/ChangeLog
+4
-0
libgfortran/io/write.c
+56
-57
No files found.
libgfortran/ChangeLog
View file @
b10cf173
2004-11-20 Roger Sayle <roger@eyesopen.com>
* io/write.c (write_float, list_formatted_write): Fix indentation.
2004-11-20 Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/16135
...
...
libgfortran/io/write.c
View file @
b10cf173
...
...
@@ -653,41 +653,41 @@ write_float (fnode *f, const char *source, int len)
n
=
extract_real
(
source
,
len
);
if
(
f
->
format
!=
FMT_B
&&
f
->
format
!=
FMT_O
&&
f
->
format
!=
FMT_Z
)
{
res
=
finite
(
n
);
if
(
res
==
0
)
{
nb
=
f
->
u
.
real
.
w
;
p
=
write_block
(
nb
);
if
(
nb
<
3
)
{
memset
(
p
,
'*'
,
nb
);
return
;
}
memset
(
p
,
' '
,
nb
);
res
=
!
isnan
(
n
);
if
(
res
!=
0
)
{
if
(
signbit
(
n
))
fin
=
'-'
;
else
fin
=
'+'
;
if
(
nb
>
7
)
memcpy
(
p
+
nb
-
8
,
"Infinity"
,
8
);
else
memcpy
(
p
+
nb
-
3
,
"Inf"
,
3
);
if
(
nb
<
8
&&
nb
>
3
)
p
[
nb
-
4
]
=
fin
;
else
if
(
nb
>
8
)
p
[
nb
-
9
]
=
fin
;
}
else
memcpy
(
p
+
nb
-
3
,
"NaN"
,
3
);
return
;
}
}
{
res
=
finite
(
n
);
if
(
res
==
0
)
{
nb
=
f
->
u
.
real
.
w
;
p
=
write_block
(
nb
);
if
(
nb
<
3
)
{
memset
(
p
,
'*'
,
nb
);
return
;
}
memset
(
p
,
' '
,
nb
);
res
=
!
isnan
(
n
);
if
(
res
!=
0
)
{
if
(
signbit
(
n
))
fin
=
'-'
;
else
fin
=
'+'
;
if
(
nb
>
7
)
memcpy
(
p
+
nb
-
8
,
"Infinity"
,
8
);
else
memcpy
(
p
+
nb
-
3
,
"Inf"
,
3
);
if
(
nb
<
8
&&
nb
>
3
)
p
[
nb
-
4
]
=
fin
;
else
if
(
nb
>
8
)
p
[
nb
-
9
]
=
fin
;
}
else
memcpy
(
p
+
nb
-
3
,
"NaN"
,
3
);
return
;
}
}
if
(
f
->
format
!=
FMT_G
)
{
...
...
@@ -1252,20 +1252,20 @@ list_formatted_write (bt type, void *p, int len)
void
namelist_write
(
void
)
{
namelist_info
*
t1
,
*
t2
;
int
len
,
num
;
void
*
p
;
namelist_info
*
t1
,
*
t2
;
int
len
,
num
;
void
*
p
;
num
=
0
;
write_character
(
"&"
,
1
);
write_character
(
ioparm
.
namelist_name
,
ioparm
.
namelist_name_len
);
write_character
(
"
\n
"
,
1
);
num
=
0
;
write_character
(
"&"
,
1
);
write_character
(
ioparm
.
namelist_name
,
ioparm
.
namelist_name_len
);
write_character
(
"
\n
"
,
1
);
if
(
ionml
!=
NULL
)
{
t1
=
ionml
;
while
(
t1
!=
NULL
)
{
if
(
ionml
!=
NULL
)
{
t1
=
ionml
;
while
(
t1
!=
NULL
)
{
num
++
;
t2
=
t1
;
t1
=
t1
->
next
;
...
...
@@ -1296,14 +1296,13 @@ namelist_write (void)
default:
internal_error
(
"Bad type for namelist write"
);
}
write_character
(
","
,
1
);
if
(
num
>
5
)
{
num
=
0
;
write_character
(
"
\n
"
,
1
);
}
}
}
write_character
(
"/"
,
1
);
write_character
(
","
,
1
);
if
(
num
>
5
)
{
num
=
0
;
write_character
(
"
\n
"
,
1
);
}
}
}
write_character
(
"/"
,
1
);
}
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