This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [BIB PATCH] FP neg and abs using bit operations


On Sat, 7 Dec 2002, Richard Henderson wrote:
> On Sat, Dec 07, 2002 at 08:49:31PM -0700, Roger Sayle wrote:
> > Ok.  Here's my best guess at providing values for most of the
> > remaining formats.  I use the value 95 for the ieee_extended_*
> > formats,
>
> It's bit 79 for intel extended, 95 for moto extended.
> The rest appear to be correct.

Thanks again for double checking.  Here's what I've just commited
with your correction above (79 for both intel extended formats).


2002-12-07  Roger Sayle  <roger@eyesopen.com>
	    Richard Henderson <rth@redhat.com>

	* real.c (ieee_extended_motorola_format,
	ieee_extended_intel_96_format, ieee_extended_intel_128_format,
	ieee_quad_format, vax_d_format, vax_g_format, i370_double_format):
	Provide appropriate values for new signbit field.


Index: real.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/real.c,v
retrieving revision 1.75.4.12
diff -c -3 -p -r1.75.4.12 real.c
*** real.c	8 Dec 2002 00:22:46 -0000	1.75.4.12
--- real.c	8 Dec 2002 05:33:39 -0000
*************** const struct real_format ieee_extended_m
*** 3173,3179 ****
      64,
      -16382,
      16384,
!     -1,
      true,
      true,
      true,
--- 3173,3179 ----
      64,
      -16382,
      16384,
!     95,
      true,
      true,
      true,
*************** const struct real_format ieee_extended_i
*** 3190,3196 ****
      64,
      -16381,
      16384,
!     -1,
      true,
      true,
      true,
--- 3190,3196 ----
      64,
      -16381,
      16384,
!     79,
      true,
      true,
      true,
*************** const struct real_format ieee_extended_i
*** 3207,3213 ****
      64,
      -16381,
      16384,
!     -1,
      true,
      true,
      true,
--- 3207,3213 ----
      64,
      -16381,
      16384,
!     79,
      true,
      true,
      true,
*************** const struct real_format ieee_quad_forma
*** 3555,3561 ****
      113,
      -16381,
      16384,
!     -1,
      true,
      true,
      true,
--- 3555,3561 ----
      113,
      -16381,
      16384,
!     127,
      true,
      true,
      true,
*************** const struct real_format vax_d_format =
*** 3880,3886 ****
      56,
      -127,
      127,
!     -1,
      false,
      false,
      false,
--- 3880,3886 ----
      56,
      -127,
      127,
!     15,
      false,
      false,
      false,
*************** const struct real_format vax_g_format =
*** 3897,3903 ****
      53,
      -1023,
      1023,
!     -1,
      false,
      false,
      false,
--- 3897,3903 ----
      53,
      -1023,
      1023,
!     15,
      false,
      false,
      false,
*************** const struct real_format i370_double_for
*** 4096,4102 ****
      14,
      -64,
      63,
!     -1,
      false,
      false,
      false, /* ??? The encoding does allow for "unnormals".  */
--- 4096,4102 ----
      14,
      -64,
      63,
!     63,
      false,
      false,
      false, /* ??? The encoding does allow for "unnormals".  */

Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]