aboutsummaryrefslogtreecommitdiff
path: root/libgcc-math/dbl-64
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-02-07 11:37:15 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-02-07 11:37:15 +0000
commit88e23c503ac776ac63d93451557ac2da3939851b (patch)
tree8a5552db904a6e9d8810ed38cb1d446f2848ea6d /libgcc-math/dbl-64
parente7e9396544525de5ad6e09527b4b3d29ab1e6429 (diff)
downloadgcc-88e23c503ac776ac63d93451557ac2da3939851b.zip
gcc-88e23c503ac776ac63d93451557ac2da3939851b.tar.gz
gcc-88e23c503ac776ac63d93451557ac2da3939851b.tar.bz2
re PR bootstrap/26050 (Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86)
2006-02-07 Richard Guenther <rguenther@suse.de> PR bootstrap/26050 * configure.ac: Generate gstdint.h using GCC_HEADER_STDINT. * configure: Re-generate. * Makefile.in: Likewise. * aclocal.m4: Likewise. * i386/Makefile.am: Adjust include path. * i386/Makefile.in: Re-generate. * include/math_private.h: Do not include sys/types.h. Include gstdint.h. Use uint32_t instead of u_int32_t. * flt-32/e_expf.c: Do not include inttypes.h * flt-32/e_sqrtf.c: Use uint32_t instead of u_int32_t. * flt-32/s_floorf.c: Likewise. * flt-32/e_atan2f.c: Likewise. * flt-32/e_powf.c: Likewise. * flt-32/e_rem_pio2f.c: Likewise. * flt-32/e_log10f.c: Likewise. * dbl-64/s_floor.c: Likewise. * dbl-64/e_log10.c: Likewise. * dbl-64/e_rem_pio2.c: Likewise. From-SVN: r110694
Diffstat (limited to 'libgcc-math/dbl-64')
-rw-r--r--libgcc-math/dbl-64/e_log10.c4
-rw-r--r--libgcc-math/dbl-64/e_rem_pio2.c4
-rw-r--r--libgcc-math/dbl-64/s_floor.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/libgcc-math/dbl-64/e_log10.c b/libgcc-math/dbl-64/e_log10.c
index e8a3278..f158b9f 100644
--- a/libgcc-math/dbl-64/e_log10.c
+++ b/libgcc-math/dbl-64/e_log10.c
@@ -75,7 +75,7 @@ static double zero = 0.0;
{
double y,z;
int32_t i,k,hx;
- u_int32_t lx;
+ uint32_t lx;
EXTRACT_WORDS(hx,lx,x);
@@ -89,7 +89,7 @@ static double zero = 0.0;
}
if (hx >= 0x7ff00000) return x+x;
k += (hx>>20)-1023;
- i = ((u_int32_t)k&0x80000000)>>31;
+ i = ((uint32_t)k&0x80000000)>>31;
hx = (hx&0x000fffff)|((0x3ff-i)<<20);
y = (double)(k+i);
SET_HIGH_WORD(x,hx);
diff --git a/libgcc-math/dbl-64/e_rem_pio2.c b/libgcc-math/dbl-64/e_rem_pio2.c
index a8a8cdb..671ee3e 100644
--- a/libgcc-math/dbl-64/e_rem_pio2.c
+++ b/libgcc-math/dbl-64/e_rem_pio2.c
@@ -93,7 +93,7 @@ pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
double z,w,t,r,fn;
double tx[3];
int32_t e0,i,j,nx,n,ix,hx;
- u_int32_t low;
+ uint32_t low;
GET_HIGH_WORD(hx,x); /* high word of x */
ix = hx&0x7fffffff;
@@ -133,7 +133,7 @@ pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
if(n<32&&ix!=npio2_hw[n-1]) {
y[0] = r-w; /* quick check no cancellation */
} else {
- u_int32_t high;
+ uint32_t high;
j = ix>>20;
y[0] = r-w;
GET_HIGH_WORD(high,y[0]);
diff --git a/libgcc-math/dbl-64/s_floor.c b/libgcc-math/dbl-64/s_floor.c
index 77db9ef..05c0233 100644
--- a/libgcc-math/dbl-64/s_floor.c
+++ b/libgcc-math/dbl-64/s_floor.c
@@ -40,7 +40,7 @@ static double huge = 1.0e300;
#endif
{
int32_t i0,i1,j0;
- u_int32_t i,j;
+ uint32_t i,j;
EXTRACT_WORDS(i0,i1,x);
j0 = ((i0>>20)&0x7ff)-0x3ff;
if(j0<20) {
@@ -62,7 +62,7 @@ static double huge = 1.0e300;
if(j0==0x400) return x+x; /* inf or NaN */
else return x; /* x is integral */
} else {
- i = ((u_int32_t)(0xffffffff))>>(j0-20);
+ i = ((uint32_t)(0xffffffff))>>(j0-20);
if((i1&i)==0) return x; /* x is integral */
if(huge+x>0.0) { /* raise inexact flag */
if(i0<0) {