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
5c8346ed
Commit
5c8346ed
authored
Jun 27, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(float_to_si): Correct return value when Inf.
From-SVN: r14328
parent
a9d308bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
gcc/config/fp-bit.c
+3
-4
No files found.
gcc/config/fp-bit.c
View file @
5c8346ed
/* This is a software floating point library which can be used instead of
/* This is a software floating point library which can be used instead of
the floating point routines in libgcc1.c for targets without hardware
the floating point routines in libgcc1.c for targets without hardware
floating point. */
floating point.
Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
/* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
under the terms of the GNU General Public License as published by the
...
@@ -1274,7 +1273,7 @@ float_to_si (FLO_type arg_a)
...
@@ -1274,7 +1273,7 @@ float_to_si (FLO_type arg_a)
return
0
;
return
0
;
/* get reasonable MAX_SI_INT... */
/* get reasonable MAX_SI_INT... */
if
(
isinf
(
&
a
))
if
(
isinf
(
&
a
))
return
a
.
sign
?
MAX_SI_INT
:
(
-
MAX_SI_INT
)
-
1
;
return
a
.
sign
?
(
-
MAX_SI_INT
)
-
1
:
MAX_SI_INT
;
/* it is a number, but a small one */
/* it is a number, but a small one */
if
(
a
.
normal_exp
<
0
)
if
(
a
.
normal_exp
<
0
)
return
0
;
return
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