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
34d6007a
Commit
34d6007a
authored
Oct 23, 1996
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor bugs in float_to_usi and dp_to_sf
From-SVN: r13000
parent
d1b9c52c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
gcc/config/fp-bit.c
+11
-3
No files found.
gcc/config/fp-bit.c
View file @
34d6007a
...
...
@@ -1313,7 +1313,7 @@ float_to_usi (FLO_type arg_a)
if
(
a
.
normal_exp
>
31
)
return
MAX_USI_INT
;
else
if
(
a
.
normal_exp
>
(
FRACBITS
+
NGARDS
))
return
a
.
fraction
.
ll
<<
(
(
FRACBITS
+
NGARDS
)
-
a
.
normal_exp
);
return
a
.
fraction
.
ll
<<
(
a
.
normal_exp
-
(
FRACBITS
+
NGARDS
)
);
else
return
a
.
fraction
.
ll
>>
((
FRACBITS
+
NGARDS
)
-
a
.
normal_exp
);
}
...
...
@@ -1388,10 +1388,18 @@ SFtype
df_to_sf
(
DFtype
arg_a
)
{
fp_number_type
in
;
USItype
sffrac
;
unpack_d
((
FLO_union_type
*
)
&
arg_a
,
&
in
);
return
__make_fp
(
in
.
class
,
in
.
sign
,
in
.
normal_exp
,
in
.
fraction
.
ll
>>
F_D_BITOFF
);
sffrac
=
in
.
fraction
.
ll
>>
F_D_BITOFF
;
/* We set the lowest guard bit in SFFRAC if we discarded any non
zero bits. */
if
((
in
.
fraction
.
ll
&
(((
USItype
)
1
<<
F_D_BITOFF
)
-
1
))
!=
0
)
sffrac
|=
1
;
return
__make_fp
(
in
.
class
,
in
.
sign
,
in
.
normal_exp
,
sffrac
);
}
#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