This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Update to vax floating point
- From: Jerry Quinn <jlquinn at optonline dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 01 Sep 2003 16:11:22 -0400
- Subject: [patch] Update to vax floating point
I'm looking at floating point printing for C++ which includes code for vax.
Trying to understand more about the different vax float formats, I looked in
real.c and got a bit confused by the D format info. The code seems to use
only 7 bits for the D format, unlike the 8 bits for F format. Also, the
documentation address seems to have changed.
2003-09-01 Jerry Quinn <jlquinn@optonline.net>
* real.c (decode_vax_d): Extract 8 exponent bits instead of 7.
Update URL to VAX floating point docs.
*** real.c.~1.124.~ Mon Sep 1 15:49:02 2003
--- real.c Mon Sep 1 16:01:40 2003
***************
*** 3623,3629 ****
/* Descriptions of VAX floating point formats can be found beginning at
! http://www.openvms.compaq.com:8000/73final/4515/4515pro_013.html#f_floating_point_format
The thing to remember is that they're almost IEEE, except for word
order, exponent bias, and the lack of infinities, nans, and denormals.
--- 3623,3629 ----
/* Descriptions of VAX floating point formats can be found beginning at
! http://h71000.www7.hp.com/doc/73FINAL/4515/4515pro_013.html#f_floating_point_format
The thing to remember is that they're almost IEEE, except for word
order, exponent bias, and the lack of infinities, nans, and denormals.
***************
*** 3768,3774 ****
image0 &= 0xffffffff;
image1 &= 0xffffffff;
! exp = (image0 >> 7) & 0x7f;
memset (r, 0, sizeof (*r));
--- 3768,3774 ----
image0 &= 0xffffffff;
image1 &= 0xffffffff;
! exp = (image0 >> 7) & 0xff;
memset (r, 0, sizeof (*r));