Date: Sat, 15 Oct 2011 07:00:29 +0000 (UTC) From: David Schultz <das@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r226380 - head/lib/msun/src Message-ID: <201110150700.p9F70TpN000255@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: das Date: Sat Oct 15 07:00:28 2011 New Revision: 226380 URL: http://svn.freebsd.org/changeset/base/226380 Log: Remove some unnecessary initializations. Obtained from: DragonFlyBSD Modified: head/lib/msun/src/e_hypot.c head/lib/msun/src/e_hypotf.c head/lib/msun/src/e_lgamma_r.c head/lib/msun/src/e_lgammaf_r.c head/lib/msun/src/s_expm1.c head/lib/msun/src/s_expm1f.c Modified: head/lib/msun/src/e_hypot.c ============================================================================== --- head/lib/msun/src/e_hypot.c Sat Oct 15 05:48:43 2011 (r226379) +++ head/lib/msun/src/e_hypot.c Sat Oct 15 07:00:28 2011 (r226380) @@ -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); Modified: head/lib/msun/src/e_hypotf.c ============================================================================== --- head/lib/msun/src/e_hypotf.c Sat Oct 15 05:48:43 2011 (r226379) +++ head/lib/msun/src/e_hypotf.c Sat Oct 15 07:00:28 2011 (r226380) @@ -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); Modified: head/lib/msun/src/e_lgamma_r.c ============================================================================== --- head/lib/msun/src/e_lgamma_r.c Sat Oct 15 05:48:43 2011 (r226379) +++ head/lib/msun/src/e_lgamma_r.c Sat Oct 15 07:00:28 2011 (r226380) @@ -269,7 +269,6 @@ __ieee754_lgamma_r(double x, int *signga } 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))))); Modified: head/lib/msun/src/e_lgammaf_r.c ============================================================================== --- head/lib/msun/src/e_lgammaf_r.c Sat Oct 15 05:48:43 2011 (r226379) +++ head/lib/msun/src/e_lgammaf_r.c Sat Oct 15 07:00:28 2011 (r226380) @@ -202,7 +202,6 @@ __ieee754_lgammaf_r(float x, int *signga } 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))))); Modified: head/lib/msun/src/s_expm1.c ============================================================================== --- head/lib/msun/src/s_expm1.c Sat Oct 15 05:48:43 2011 (r226379) +++ head/lib/msun/src/s_expm1.c Sat Oct 15 07:00:28 2011 (r226380) @@ -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 */ Modified: head/lib/msun/src/s_expm1f.c ============================================================================== --- head/lib/msun/src/s_expm1f.c Sat Oct 15 05:48:43 2011 (r226379) +++ head/lib/msun/src/s_expm1f.c Sat Oct 15 07:00:28 2011 (r226380) @@ -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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110150700.p9F70TpN000255>