diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-31 17:52:38 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-31 17:52:38 +0000 |
commit | c38d39c99c3c76f028b729dcd6defb383f896b2b (patch) | |
tree | 69274e75c365b78edbbe34b9519e23aa866c0043 /libiberty/floatformat.c | |
parent | 015c7d86c954fbfaf9daa2e5a659163f5f31fc3c (diff) | |
download | gcc-c38d39c99c3c76f028b729dcd6defb383f896b2b.tar.gz |
from Mark Kettenis <kettenis@gnu.org>
* floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
New variables.
* floatformat.h (enum floatformat_byteorders): Add
floatformat_vax.
(floatformat_vax_aingle, floatformat_vax_double): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106281 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r-- | libiberty/floatformat.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c index 8f0d7894641..28c9fbf662d 100644 --- a/libiberty/floatformat.c +++ b/libiberty/floatformat.c @@ -108,6 +108,30 @@ const struct floatformat floatformat_ieee_double_littlebyte_bigword = floatformat_always_valid }; +/* floatformat for VAX. Not quite IEEE, but close enough. */ + +const struct floatformat floatformat_vax_f = +{ + floatformat_vax, 32, 0, 1, 8, 129, 0, 9, 23, + floatformat_intbit_no, + "floatformat_vax_f", + floatformat_always_valid +}; +const struct floatformat floatformat_vax_d = +{ + floatformat_vax, 64, 0, 1, 8, 129, 0, 9, 55, + floatformat_intbit_no, + "floatformat_vax_d", + floatformat_always_valid +}; +const struct floatformat floatformat_vax_g = +{ + floatformat_vax, 64, 0, 1, 11, 1025, 0, 12, 52, + floatformat_intbit_no, + "floatformat_vax_g", + floatformat_always_valid +}; + static int floatformat_i387_ext_is_valid (const struct floatformat *fmt, const void *from); |