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
a61e5d28
Commit
a61e5d28
authored
Mar 20, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(PRINT_OPERAND): Print float infinity and NaN's as +/-99e999.
From-SVN: r6835
parent
1e6c6f11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
gcc/config/m68k/news.h
+17
-1
No files found.
gcc/config/m68k/news.h
View file @
a61e5d28
/* Definitions of target machine for GNU compiler. SONY NEWS-OS 4 version.
Copyright (C) 1987, 1989, 1993 Free Software Foundation, Inc.
Copyright (C) 1987, 1989, 1993
, 1994
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -319,6 +319,14 @@ do { char dstr[30]; \
if (CODE == 'f') \
{ char dstr[30]; \
REAL_VALUE_TO_DECIMAL (r, "%.9e", dstr); \
if (REAL_VALUE_ISINF (r) || REAL_VALUE_ISNAN (r)) { \
if (REAL_VALUE_NEGATIVE (r)) \
fprintf (FILE, "#0f-99e999"); \
else \
fprintf (FILE, "#0f99e999"); } \
else if (REAL_VALUE_MINUS_ZERO (r)) \
fprintf (FILE, "#0f-0.0"); \
else \
fprintf (FILE, "#0f%s", dstr); \
} \
else \
...
...
@@ -334,6 +342,14 @@ do { char dstr[30]; \
{ REAL_VALUE_TYPE r; char dstr[30]; \
REAL_VALUE_FROM_CONST_DOUBLE (r, X); \
REAL_VALUE_TO_DECIMAL (r, "%.20e", dstr ); \
if (REAL_VALUE_ISINF (r) || REAL_VALUE_ISNAN (r)) { \
if (REAL_VALUE_NEGATIVE (r)) \
fprintf (FILE, "#0d-99e999"); \
else \
fprintf (FILE, "#0d99e999"); } \
else if (REAL_VALUE_MINUS_ZERO (r)) \
fprintf (FILE, "#0d-0.0"); \
else \
fprintf (FILE, "#0d%s", dstr); } \
else if (CODE == 'b') output_addr_const (FILE, X); \
else { putc ('#', FILE); output_addr_const (FILE, X); }}
...
...
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