diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-12-27 20:43:24 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-12-27 20:43:24 +0530 |
commit | b76eb5f076d362cdfbb95f0986285a8661e4082f (patch) | |
tree | 86db1db19c800043d2a2061e2fe4f6ea21666527 /sysdeps/ieee754/dbl-64/mpatan.c | |
parent | 8ebac7785b6ac0e412075d832af2ede21153148a (diff) | |
download | glibc-b76eb5f076d362cdfbb95f0986285a8661e4082f.tar glibc-b76eb5f076d362cdfbb95f0986285a8661e4082f.tar.gz glibc-b76eb5f076d362cdfbb95f0986285a8661e4082f.tar.bz2 glibc-b76eb5f076d362cdfbb95f0986285a8661e4082f.zip |
Move mpone out to a global const
Code cleanup.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/mpatan.c')
-rw-r--r-- | sysdeps/ieee754/dbl-64/mpatan.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sysdeps/ieee754/dbl-64/mpatan.c b/sysdeps/ieee754/dbl-64/mpatan.c index 80637e502b..d897bbbc46 100644 --- a/sysdeps/ieee754/dbl-64/mpatan.c +++ b/sysdeps/ieee754/dbl-64/mpatan.c @@ -48,9 +48,6 @@ __mpatan(mp_no *x, mp_no *y, int p) { int i,m,n; double dx; mp_no - mpone = {0,{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0, - 0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0, - 0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, mptwo = {0,{0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}}, @@ -60,7 +57,7 @@ __mpatan(mp_no *x, mp_no *y, int p) { mp_no mps,mpsm,mpt,mpt1,mpt2,mpt3; - /* Choose m and initiate mpone, mptwo & mptwoim1 */ + /* Choose m and initiate mptwo & mptwoim1 */ if (EX>0) m=7; else if (EX<0) m=0; else { @@ -68,8 +65,8 @@ __mpatan(mp_no *x, mp_no *y, int p) { for (m=6; m>0; m--) {if (dx>__atan_xm[m].d) break;} } - mpone.e = mptwo.e = mptwoim1.e = 1; - mpone.d[0] = mpone.d[1] = mptwo.d[0] = mptwoim1.d[0] = ONE; + mptwo.e = mptwoim1.e = 1; + mptwo.d[0] = mptwoim1.d[0] = ONE; mptwo.d[1] = TWO; /* Reduce x m times */ |