This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove redundant arguments in reduce_and_compute


Hi,

The A and DA arguments in reduce_and_compute are useless and hence
have been removed.  Tested on x86_64 to verify that this does not
break any tests.

OK to commit?

Siddhesh

	* sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
	arguments A and DA.
	(__sin): Adjust.
	(__cos): Likewise.

diff --git a/sysdeps/ieee754/dbl-64/s_sin.c b/sysdeps/ieee754/dbl-64/s_sin.c
index 4e2ac3d..48a26f5 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
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]