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
56b03d5f
Commit
56b03d5f
authored
May 11, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(__floatdisf): Use DFtype for intermediate values.
From-SVN: r4421
parent
6a25991d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
gcc/libgcc2.c
+5
-2
No files found.
gcc/libgcc2.c
View file @
56b03d5f
...
@@ -1018,7 +1018,10 @@ SFtype
...
@@ -1018,7 +1018,10 @@ SFtype
__floatdisf
(
u
)
__floatdisf
(
u
)
DItype
u
;
DItype
u
;
{
{
SFtype
f
;
/* Do the calculation in DFmode
so that we don't lose any of the precision of the high word
while multiplying it. */
DFtype
f
;
SItype
negate
=
0
;
SItype
negate
=
0
;
if
(
u
<
0
)
if
(
u
<
0
)
...
@@ -1029,7 +1032,7 @@ __floatdisf (u)
...
@@ -1029,7 +1032,7 @@ __floatdisf (u)
f
*=
HIGH_HALFWORD_COEFF
;
f
*=
HIGH_HALFWORD_COEFF
;
f
+=
(
USItype
)
(
u
&
(
HIGH_WORD_COEFF
-
1
));
f
+=
(
USItype
)
(
u
&
(
HIGH_WORD_COEFF
-
1
));
return
(
negate
?
-
f
:
f
);
return
(
SFtype
)
(
negate
?
-
f
:
f
);
}
}
#endif
#endif
...
...
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