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
bc29e2ad
Commit
bc29e2ad
authored
May 16, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(split_double): Fix arg of REAL_VALUE_TO_TARGET_DOUBLE.
From-SVN: r7314
parent
60e61165
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
gcc/final.c
+9
-3
No files found.
gcc/final.c
View file @
bc29e2ad
...
...
@@ -2859,11 +2859,17 @@ split_double (value, first, second)
else
{
#ifdef REAL_ARITHMETIC
REAL_VALUE_TYPE
r
;
HOST_WIDE_INT
l
[
2
];
REAL_VALUE_TYPE
r
;
long
l
[
2
];
REAL_VALUE_FROM_CONST_DOUBLE
(
r
,
value
);
/* Note, this converts the REAL_VALUE_TYPE to the target's
format, splits up the floating point double and outputs
exactly 32 bits of it into each of l[0] and l[1] --
not necessarily BITS_PER_WORD bits. */
REAL_VALUE_TO_TARGET_DOUBLE
(
r
,
l
);
*
first
=
GEN_INT
(
l
[
0
]);
*
second
=
GEN_INT
(
l
[
1
]);
*
first
=
GEN_INT
((
HOST_WIDE_INT
)
l
[
0
]);
*
second
=
GEN_INT
((
HOST_WIDE_INT
)
l
[
1
]);
#else
if
((
HOST_FLOAT_FORMAT
!=
TARGET_FLOAT_FORMAT
||
HOST_BITS_PER_WIDE_INT
!=
BITS_PER_WORD
)
...
...
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