aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-12-20 15:56:21 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-12-20 15:56:21 +0530
commit975195e4668575d5c53fbf5223501c26ee8dc20e (patch)
treea3fa6b5a05d3946fbf851785e285a81bb9d3a222
parent5ff8d60ef324b9666c92fc342d143e8074043cd1 (diff)
downloadglibc-975195e4668575d5c53fbf5223501c26ee8dc20e.tar
glibc-975195e4668575d5c53fbf5223501c26ee8dc20e.tar.gz
glibc-975195e4668575d5c53fbf5223501c26ee8dc20e.tar.bz2
glibc-975195e4668575d5c53fbf5223501c26ee8dc20e.zip
Remove redundant arguments in reduce_and_compute
The A and DA arguments in reduce_and_compute are useless and hence have been removed.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/ieee754/dbl-64/s_sin.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a8dab6da0e..314ddd5843 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-12-20 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
+ arguments A and DA.
+ (__sin): Adjust.
+ (__cos): Likewise.
+
* sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
(__cos): Likewise.
(sloww1): Don't adjust sign of DX.
diff --git a/sysdeps/ieee754/dbl-64/s_sin.c b/sysdeps/ieee754/dbl-64/s_sin.c
index 4e2ac3dbfe..48a26f57c4 100644
--- a/sysdeps/ieee754/dbl-64/s_sin.c
+++ b/sysdeps/ieee754/dbl-64/s_sin.c
@@ -150,9 +150,9 @@ static double csloww2 (double x, double dx, double orig, int n);
by simply rotating the quadrants by 1. */
static inline double
__always_inline
-reduce_and_compute (double x, double a, double da, unsigned int k)
+reduce_and_compute (double x, unsigned int k)
{
- double retval = 0;
+ double retval = 0, a, da;
unsigned int n = __branred (x, &a, &da);
k = (n + k) % 4;
switch (k)
@@ -424,7 +424,7 @@ __sin (double x)
/* -----------------281474976710656 <|x| <2^1024----------------------------*/
else if (k < 0x7ff00000)
- retval = reduce_and_compute (x, a, da, 0);
+ retval = reduce_and_compute (x, 0);
/*--------------------- |x| > 2^1024 ----------------------------------*/
else
@@ -687,7 +687,7 @@ __cos (double x)
/* 281474976710656 <|x| <2^1024 */
else if (k < 0x7ff00000)
- retval = reduce_and_compute (x, a, da, 1);
+ retval = reduce_and_compute (x, 1);
else
{