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
0b72c3df
Commit
0b72c3df
authored
May 31, 2000
by
Andrew Cagney
Committed by
Andrew Cagney
May 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add field ``name'' to floatformat.
From-SVN: r34292
parent
ecc9dd93
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
13 deletions
+41
-13
include/ChangeLog
+4
-0
include/floatformat.h
+4
-1
libiberty/ChangeLog
+4
-0
libiberty/floatformat.c
+29
-12
No files found.
include/ChangeLog
View file @
0b72c3df
Tue May 30 16:53:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
* floatformat.h (struct floatformat): Add field name.
2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* getopt.h (getopt): Also check HAVE_DECL_* when prototyping.
...
...
include/floatformat.h
View file @
0b72c3df
/* IEEE floating point support declarations, for GDB, the GNU Debugger.
Copyright (C) 1991 Free Software Foundation, Inc.
Copyright (C) 1991
, 2000
Free Software Foundation, Inc.
This file is part of GDB.
...
...
@@ -73,6 +73,9 @@ struct floatformat
/* Is the integer bit explicit or implicit? */
enum
floatformat_intbit
intbit
;
/* Internal name for debugging. */
const
char
*
name
;
};
/* floatformats for IEEE single and double, big and little endian. */
...
...
libiberty/ChangeLog
View file @
0b72c3df
Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
* floatformat.c: Add name to each floatformat field.
Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
* Makefile.in (objalloc.o): Depend on config.h
...
...
libiberty/floatformat.c
View file @
0b72c3df
/* IEEE floating point support routines, for GDB, the GNU Debugger.
Copyright (C) 1991, 1994, 1999 Free Software Foundation, Inc.
Copyright (C) 1991, 1994, 1999
, 2000
Free Software Foundation, Inc.
This file is part of GDB.
...
...
@@ -36,19 +36,27 @@ extern char *memset ();
/* floatformats for IEEE single and double, big and little endian. */
const
struct
floatformat
floatformat_ieee_single_big
=
{
floatformat_big
,
32
,
0
,
1
,
8
,
127
,
255
,
9
,
23
,
floatformat_intbit_no
floatformat_big
,
32
,
0
,
1
,
8
,
127
,
255
,
9
,
23
,
floatformat_intbit_no
,
"floatformat_ieee_single_big"
};
const
struct
floatformat
floatformat_ieee_single_little
=
{
floatformat_little
,
32
,
0
,
1
,
8
,
127
,
255
,
9
,
23
,
floatformat_intbit_no
floatformat_little
,
32
,
0
,
1
,
8
,
127
,
255
,
9
,
23
,
floatformat_intbit_no
,
"floatformat_ieee_single_little"
};
const
struct
floatformat
floatformat_ieee_double_big
=
{
floatformat_big
,
64
,
0
,
1
,
11
,
1023
,
2047
,
12
,
52
,
floatformat_intbit_no
floatformat_big
,
64
,
0
,
1
,
11
,
1023
,
2047
,
12
,
52
,
floatformat_intbit_no
,
"floatformat_ieee_double_big"
};
const
struct
floatformat
floatformat_ieee_double_little
=
{
floatformat_little
,
64
,
0
,
1
,
11
,
1023
,
2047
,
12
,
52
,
floatformat_intbit_no
floatformat_little
,
64
,
0
,
1
,
11
,
1023
,
2047
,
12
,
52
,
floatformat_intbit_no
,
"floatformat_ieee_double_little"
};
/* floatformat for IEEE double, little endian byte order, with big endian word
...
...
@@ -56,24 +64,30 @@ const struct floatformat floatformat_ieee_double_little =
const
struct
floatformat
floatformat_ieee_double_littlebyte_bigword
=
{
floatformat_littlebyte_bigword
,
64
,
0
,
1
,
11
,
1023
,
2047
,
12
,
52
,
floatformat_intbit_no
floatformat_littlebyte_bigword
,
64
,
0
,
1
,
11
,
1023
,
2047
,
12
,
52
,
floatformat_intbit_no
,
"floatformat_ieee_double_little"
};
const
struct
floatformat
floatformat_i387_ext
=
{
floatformat_little
,
80
,
0
,
1
,
15
,
0x3fff
,
0x7fff
,
16
,
64
,
floatformat_intbit_yes
floatformat_intbit_yes
,
"floatformat_i387_ext"
};
const
struct
floatformat
floatformat_m68881_ext
=
{
/* Note that the bits from 16 to 31 are unused. */
floatformat_big
,
96
,
0
,
1
,
15
,
0x3fff
,
0x7fff
,
32
,
64
,
floatformat_intbit_yes
floatformat_big
,
96
,
0
,
1
,
15
,
0x3fff
,
0x7fff
,
32
,
64
,
floatformat_intbit_yes
,
"floatformat_m68881_ext"
};
const
struct
floatformat
floatformat_i960_ext
=
{
/* Note that the bits from 0 to 15 are unused. */
floatformat_little
,
96
,
16
,
17
,
15
,
0x3fff
,
0x7fff
,
32
,
64
,
floatformat_intbit_yes
floatformat_intbit_yes
,
"floatformat_i960_ext"
};
const
struct
floatformat
floatformat_m88110_ext
=
{
...
...
@@ -81,17 +95,20 @@ const struct floatformat floatformat_m88110_ext =
/* Harris uses raw format 128 bytes long, but the number is just an ieee
double, and the last 64 bits are wasted. */
floatformat_big
,
128
,
0
,
1
,
11
,
0x3ff
,
0x7ff
,
12
,
52
,
floatformat_intbit_no
floatformat_intbit_no
,
"floatformat_m88110_ext(harris)"
#else
floatformat_big
,
80
,
0
,
1
,
15
,
0x3fff
,
0x7fff
,
16
,
64
,
floatformat_intbit_yes
floatformat_intbit_yes
,
"floatformat_m88110_ext"
#endif
/* HARRIS_FLOAT_FORMAT */
};
const
struct
floatformat
floatformat_arm_ext
=
{
/* Bits 1 to 16 are unused. */
floatformat_big
,
96
,
0
,
17
,
15
,
0x3fff
,
0x7fff
,
32
,
64
,
floatformat_intbit_yes
floatformat_intbit_yes
,
"floatformat_arm_ext"
};
static
unsigned
long
get_field
PARAMS
((
unsigned
char
*
,
...
...
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