From e595c01fd83072e874136986bbc95b36da4cf428 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sat, 15 Oct 2011 07:00:28 +0000 Subject: [PATCH] Remove some unnecessary initializations. Obtained from: DragonFlyBSD --- lib/msun/src/e_hypot.c | 2 +- lib/msun/src/e_hypotf.c | 2 +- lib/msun/src/e_lgamma_r.c | 1 - lib/msun/src/e_lgammaf_r.c | 1 - lib/msun/src/s_expm1.c | 1 - lib/msun/src/s_expm1f.c | 1 - 6 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/msun/src/e_hypot.c b/lib/msun/src/e_hypot.c index fb498c1c4029..2398e9837fec 100644 --- a/lib/msun/src/e_hypot.c +++ b/lib/msun/src/e_hypot.c @@ -54,7 +54,7 @@ __FBSDID("$FreeBSD$"); double __ieee754_hypot(double x, double y) { - double a=x,b=y,t1,t2,y1,y2,w; + double a,b,t1,t2,y1,y2,w; int32_t j,k,ha,hb; GET_HIGH_WORD(ha,x); diff --git a/lib/msun/src/e_hypotf.c b/lib/msun/src/e_hypotf.c index c82c6e7d2ad0..6d083e4d2c3f 100644 --- a/lib/msun/src/e_hypotf.c +++ b/lib/msun/src/e_hypotf.c @@ -22,7 +22,7 @@ __FBSDID("$FreeBSD$"); float __ieee754_hypotf(float x, float y) { - float a=x,b=y,t1,t2,y1,y2,w; + float a,b,t1,t2,y1,y2,w; int32_t j,k,ha,hb; GET_FLOAT_WORD(ha,x); diff --git a/lib/msun/src/e_lgamma_r.c b/lib/msun/src/e_lgamma_r.c index a587b8f63dcb..1cff592c5d7e 100644 --- a/lib/msun/src/e_lgamma_r.c +++ b/lib/msun/src/e_lgamma_r.c @@ -269,7 +269,6 @@ __ieee754_lgamma_r(double x, int *signgamp) } else if(ix<0x40200000) { /* x < 8.0 */ i = (int)x; - t = zero; y = x-(double)i; p = y*(s0+y*(s1+y*(s2+y*(s3+y*(s4+y*(s5+y*s6)))))); q = one+y*(r1+y*(r2+y*(r3+y*(r4+y*(r5+y*r6))))); diff --git a/lib/msun/src/e_lgammaf_r.c b/lib/msun/src/e_lgammaf_r.c index 47c6ed073c2a..e2d90ef775bd 100644 --- a/lib/msun/src/e_lgammaf_r.c +++ b/lib/msun/src/e_lgammaf_r.c @@ -202,7 +202,6 @@ __ieee754_lgammaf_r(float x, int *signgamp) } else if(ix<0x41000000) { /* x < 8.0 */ i = (int)x; - t = zero; y = x-(float)i; p = y*(s0+y*(s1+y*(s2+y*(s3+y*(s4+y*(s5+y*s6)))))); q = one+y*(r1+y*(r2+y*(r3+y*(r4+y*(r5+y*r6))))); diff --git a/lib/msun/src/s_expm1.c b/lib/msun/src/s_expm1.c index 3de7bfbc837a..f41c7e3e99c6 100644 --- a/lib/msun/src/s_expm1.c +++ b/lib/msun/src/s_expm1.c @@ -135,7 +135,6 @@ expm1(double x) GET_HIGH_WORD(hx,x); xsb = hx&0x80000000; /* sign bit of x */ - if(xsb==0) y=x; else y= -x; /* y = |x| */ hx &= 0x7fffffff; /* high word of |x| */ /* filter out huge and non-finite argument */ diff --git a/lib/msun/src/s_expm1f.c b/lib/msun/src/s_expm1f.c index 483472ce69b8..d7dd1b90c464 100644 --- a/lib/msun/src/s_expm1f.c +++ b/lib/msun/src/s_expm1f.c @@ -44,7 +44,6 @@ expm1f(float x) GET_FLOAT_WORD(hx,x); xsb = hx&0x80000000; /* sign bit of x */ - if(xsb==0) y=x; else y= -x; /* y = |x| */ hx &= 0x7fffffff; /* high word of |x| */ /* filter out huge and non-finite argument */