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
0924404c
Commit
0924404c
authored
Sep 13, 1999
by
Nick Clifton
Committed by
Nick Clifton
Sep 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move definition of 'thenan' to its own object file in order to save space.
From-SVN: r29371
parent
9f59f94d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
5 deletions
+34
-5
gcc/ChangeLog
+11
-0
gcc/Makefile.in
+2
-2
gcc/config/fp-bit.c
+21
-3
No files found.
gcc/ChangeLog
View file @
0924404c
Mon
Sep
13
10
:
01
:
33
1999
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
config
/
fp
-
bit
.
c
:
Define
L_thenan_sf
or
L_thenan_df
(
as
appropriate
)
if
FINE_GRAINED_LIBRARIES
is
not
defined
.
(
nan
)
:
Return
_thenan_sf
or
_thenan_df
as
appropriate
.
(
L_thenan_sf
)
:
Define
_thenan_sf
.
(
L_thenan_df
)
:
Define
_thenan_df
.
*
Makefile
.
in
(
FPBIT_FUNCS
)
:
Add
_thenan_sf
.
(
DPBIT_FUNCS
)
:
Add
_thenan_df
.
Mon
Sep
13
09
:
38
:
53
1999
Andreas
Schwab
<
schwab
@suse
.
de
>
*
tree
.
c
(
fix_sizetype
)
:
Exchange
the
types
for
TYPE_SIZE
and
...
...
gcc/Makefile.in
View file @
0924404c
...
...
@@ -733,12 +733,12 @@ LIB2FUNCS_EH = _eh
FPBIT_FUNCS
=
_pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf
\
_fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf
\
_lt_sf _le_sf _si_to_sf _sf_to_si _negate_sf _make_sf
\
_sf_to_df
_sf_to_df
_thenan_sf
DPBIT_FUNCS
=
_pack_df _unpack_df _addsub_df _mul_df _div_df
\
_fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df
\
_lt_df _le_df _si_to_df _df_to_si _negate_df _make_df
\
_df_to_sf
_df_to_sf
_thenan_df
# The files that "belong" in CONFIG_H are deliberately omitted
# because having them there would not be useful in actual practice.
...
...
gcc/config/fp-bit.c
View file @
0924404c
...
...
@@ -90,6 +90,11 @@ Boston, MA 02111-1307, USA. */
#define L_make_df
#define L_sf_to_df
#define L_df_to_sf
#ifdef FLOAT
#define L_thenan_sf
#else
#define L_thenan_df
#endif
#endif
/* The following macros can be defined to change the behaviour of this file:
...
...
@@ -389,13 +394,26 @@ FLO_union_type;
#define isinf(x) 0
#else
#if defined L_thenan_sf
const
fp_number_type
__thenan_sf
=
{
CLASS_SNAN
};
#elif defined L_thenan_df
const
fp_number_type
__thenan_df
=
{
CLASS_SNAN
};
#elif defined FLOAT
extern
const
fp_number_type
__thenan_sf
;
#else
extern
const
fp_number_type
__thenan_df
;
#endif
INLINE
static
fp_number_type
*
nan
()
{
static
fp_number_type
thenan
;
return
&
thenan
;
/* Discard the const qualifier... */
#ifdef FLOAT
return
(
fp_number_type
*
)
(
&
__thenan_sf
);
#else
return
(
fp_number_type
*
)
(
&
__thenan_df
);
#endif
}
INLINE
...
...
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