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
a520ff95
Commit
a520ff95
authored
Sep 23, 2002
by
Richard Henderson
Committed by
Richard Henderson
Sep 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* real.c (do_multiply): Normalize U before addition.
From-SVN: r57435
parent
6ad8f949
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
gcc/ChangeLog
+4
-0
gcc/real.c
+3
-3
No files found.
gcc/ChangeLog
View file @
a520ff95
2002
-
09
-
23
Richard
Henderson
<
rth
@redhat
.
com
>
*
real
.
c
(
do_multiply
)
:
Normalize
U
before
addition
.
2002
-
09
-
23
Mark
Mitchell
<
mark
@codesourcery
.
com
>
2002
-
09
-
23
Mark
Mitchell
<
mark
@codesourcery
.
com
>
*
c
-
common
.
c
(
flag_abi_version
)
:
New
variable
.
*
c
-
common
.
c
(
flag_abi_version
)
:
New
variable
.
...
...
gcc/real.c
View file @
a520ff95
...
@@ -741,9 +741,6 @@ do_multiply (r, a, b)
...
@@ -741,9 +741,6 @@ do_multiply (r, a, b)
rr
=
r
;
rr
=
r
;
get_zero
(
rr
,
0
);
get_zero
(
rr
,
0
);
u
.
class
=
rvc_normal
;
u
.
sign
=
0
;
/* Collect all the partial products. Since we don't have sure access
/* Collect all the partial products. Since we don't have sure access
to a widening multiply, we split each long into two half-words.
to a widening multiply, we split each long into two half-words.
...
@@ -784,6 +781,8 @@ do_multiply (r, a, b)
...
@@ -784,6 +781,8 @@ do_multiply (r, a, b)
/* Would underflow to zero, which we shouldn't bother adding. */
/* Would underflow to zero, which we shouldn't bother adding. */
continue
;
continue
;
u
.
class
=
rvc_normal
;
u
.
sign
=
0
;
u
.
exp
=
exp
;
u
.
exp
=
exp
;
for
(
k
=
j
;
k
<
SIGSZ
*
2
;
k
+=
2
)
for
(
k
=
j
;
k
<
SIGSZ
*
2
;
k
+=
2
)
...
@@ -797,6 +796,7 @@ do_multiply (r, a, b)
...
@@ -797,6 +796,7 @@ do_multiply (r, a, b)
u
.
sig
[
k
/
2
]
=
ai
*
bi
;
u
.
sig
[
k
/
2
]
=
ai
*
bi
;
}
}
normalize
(
&
u
);
do_add
(
rr
,
rr
,
&
u
,
0
);
do_add
(
rr
,
rr
,
&
u
,
0
);
}
}
}
}
...
...
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