* soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac 
bit-fields. 
* soft-fp/extended.h (_FP_UNION_E): Likewise.
	[BZ #2831]
	* soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
	bit-fields.
2007-03-20  Jakub Jelinek  <jakub@redhat.com>

	* soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
	bit-fields.
	* soft-fp/extended.h (_FP_UNION_E): Likewise.

2006-06-07  Joseph Myers  <joseph@codesourcery.com>

	[BZ #2831]
	* soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
	bit-fields.
This commit is contained in:
Jakub Jelinek 2007-03-20 12:10:36 +00:00
parent addc833576
commit 06029c2084
4 changed files with 36 additions and 24 deletions

View File

@ -1,3 +1,15 @@
2007-03-20 Jakub Jelinek <jakub@redhat.com>
* soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
bit-fields.
* soft-fp/extended.h (_FP_UNION_E): Likewise.
2006-06-07 Joseph Myers <joseph@codesourcery.com>
[BZ #2831]
* soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
bit-fields.
2007-03-18 Jakub Jelinek <jakub@redhat.com> 2007-03-18 Jakub Jelinek <jakub@redhat.com>
* nscd/gai.c: Include alloca.h. * nscd/gai.c: Include alloca.h.

View File

@ -1,6 +1,6 @@
/* Software floating-point emulation. /* Software floating-point emulation.
Definitions for IEEE Double Precision Definitions for IEEE Double Precision
Copyright (C) 1997,1998,1999,2006 Free Software Foundation, Inc. Copyright (C) 1997,1998,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@cygnus.com), Contributed by Richard Henderson (rth@cygnus.com),
Jakub Jelinek (jj@ultra.linux.cz), Jakub Jelinek (jj@ultra.linux.cz),
@ -170,9 +170,9 @@ union _FP_UNION_D
#if __BYTE_ORDER == __BIG_ENDIAN #if __BYTE_ORDER == __BIG_ENDIAN
unsigned sign : 1; unsigned sign : 1;
unsigned exp : _FP_EXPBITS_D; unsigned exp : _FP_EXPBITS_D;
unsigned long frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0); _FP_W_TYPE frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0);
#else #else
unsigned long frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0); _FP_W_TYPE frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0);
unsigned exp : _FP_EXPBITS_D; unsigned exp : _FP_EXPBITS_D;
unsigned sign : 1; unsigned sign : 1;
#endif #endif

View File

@ -1,6 +1,6 @@
/* Software floating-point emulation. /* Software floating-point emulation.
Definitions for IEEE Extended Precision. Definitions for IEEE Extended Precision.
Copyright (C) 1999,2006 Free Software Foundation, Inc. Copyright (C) 1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Jakub Jelinek (jj@ultra.linux.cz). Contributed by Jakub Jelinek (jj@ultra.linux.cz).
@ -277,12 +277,12 @@ union _FP_UNION_E
XFtype flt; XFtype flt;
struct { struct {
#if __BYTE_ORDER == __BIG_ENDIAN #if __BYTE_ORDER == __BIG_ENDIAN
unsigned long pad : (_FP_W_TYPE_SIZE - 1 - _FP_EXPBITS_E); _FP_W_TYPE pad : (_FP_W_TYPE_SIZE - 1 - _FP_EXPBITS_E);
unsigned sign : 1; unsigned sign : 1;
unsigned exp : _FP_EXPBITS_E; unsigned exp : _FP_EXPBITS_E;
unsigned long frac : _FP_W_TYPE_SIZE; _FP_W_TYPE frac : _FP_W_TYPE_SIZE;
#else #else
unsigned long frac : _FP_W_TYPE_SIZE; _FP_W_TYPE frac : _FP_W_TYPE_SIZE;
unsigned exp : _FP_EXPBITS_E; unsigned exp : _FP_EXPBITS_E;
unsigned sign : 1; unsigned sign : 1;
#endif #endif

View File

@ -1,6 +1,6 @@
/* Software floating-point emulation. /* Software floating-point emulation.
Definitions for IEEE Quad Precision. Definitions for IEEE Quad Precision.
Copyright (C) 1997,1998,1999,2006 Free Software Foundation, Inc. Copyright (C) 1997,1998,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@cygnus.com), Contributed by Richard Henderson (rth@cygnus.com),
Jakub Jelinek (jj@ultra.linux.cz), Jakub Jelinek (jj@ultra.linux.cz),
@ -178,11 +178,11 @@ union _FP_UNION_Q
#if __BYTE_ORDER == __BIG_ENDIAN #if __BYTE_ORDER == __BIG_ENDIAN
unsigned sign : 1; unsigned sign : 1;
unsigned exp : _FP_EXPBITS_Q; unsigned exp : _FP_EXPBITS_Q;
unsigned long frac1 : _FP_FRACBITS_Q-(_FP_IMPLBIT_Q != 0)-_FP_W_TYPE_SIZE; _FP_W_TYPE frac1 : _FP_FRACBITS_Q - (_FP_IMPLBIT_Q != 0) - _FP_W_TYPE_SIZE;
unsigned long frac0 : _FP_W_TYPE_SIZE; _FP_W_TYPE frac0 : _FP_W_TYPE_SIZE;
#else #else
unsigned long frac0 : _FP_W_TYPE_SIZE; _FP_W_TYPE frac0 : _FP_W_TYPE_SIZE;
unsigned long frac1 : _FP_FRACBITS_Q-(_FP_IMPLBIT_Q != 0)-_FP_W_TYPE_SIZE; _FP_W_TYPE frac1 : _FP_FRACBITS_Q - (_FP_IMPLBIT_Q != 0) - _FP_W_TYPE_SIZE;
unsigned exp : _FP_EXPBITS_Q; unsigned exp : _FP_EXPBITS_Q;
unsigned sign : 1; unsigned sign : 1;
#endif #endif