This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch, master, updated. glibc-2.14-468-gcb95113


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  cb95113e30aead7b97cd806278c0ff055ba721b6 (commit)
       via  09e18697732f90357db0b3241e563a4db8ebfb03 (commit)
      from  c9aafacee48275d85d86f25ab4569516f180846a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=cb95113e30aead7b97cd806278c0ff055ba721b6

commit cb95113e30aead7b97cd806278c0ff055ba721b6
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Sat Oct 29 14:08:56 2011 -0400

    Fix accuracy problem in generic sin

diff --git a/ChangeLog b/ChangeLog
index 6cb54e6..4c5ff75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-03  Andreas Jaeger  <aj@suse.de>
+
+	[BZ #10709]
+	* sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
+	of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
+	* math/libm-test.inc (sin_test): Add test case.
+
 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
 
 	[BZ #13337]
diff --git a/NEWS b/NEWS
index e4b9f44..73ab2b9 100644
--- a/NEWS
+++ b/NEWS
@@ -9,10 +9,10 @@ Version 2.15
 
 * The following bugs are resolved with this release:
 
-  6779, 6783, 9696, 11589, 12403, 12847, 12868, 12852, 12874, 12885, 12892,
-  12907, 12922, 12935, 13007, 13021, 13067, 13068, 13090, 13092, 13114,
-  13118, 13123, 13134, 13138, 13150, 13179, 13192, 13268, 13291, 13335,
-  13337, 13344
+  6779, 6783, 9696, 10709, 11589, 12403, 12847, 12868, 12852, 12874, 12885,
+  12892, 12907, 12922, 12935, 13007, 13021, 13067, 13068, 13090, 13092,
+  13114, 13118, 13123, 13134, 13138, 13150, 13179, 13192, 13268, 13291,
+  13335, 13337, 13344
 
 * New program pldd to list loaded object of a process
   Implemented by Ulrich Drepper.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 96da7cd..a451174 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -5642,6 +5642,7 @@ sin_test (void)
 
 #ifdef TEST_DOUBLE
   TEST_f_f (sin, 0.80190127184058835, 0.71867942238767868);
+  TEST_f_f (sin, 2.522464e-1, 2.4957989804940911e-1);
 #endif
 
   END (sin);
diff --git a/sysdeps/ieee754/dbl-64/s_sin.c b/sysdeps/ieee754/dbl-64/s_sin.c
index 6f19f15..5183e55 100644
--- a/sysdeps/ieee754/dbl-64/s_sin.c
+++ b/sysdeps/ieee754/dbl-64/s_sin.c
@@ -138,7 +138,7 @@ __sin(double x){
 	  cor=(ssn+s*ccs-sn*c)+cs*s;
 	  res=sn+cor;
 	  cor=(sn-res)+cor;
-	  return (res==res+1.025*cor)? res : slow1(x);
+	  return (res==res+1.096*cor)? res : slow1(x);
 	}    /*   else  if (k < 0x3feb6000)    */
 
 /*----------------------- 0.855469  <|x|<2.426265  ----------------------*/

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=09e18697732f90357db0b3241e563a4db8ebfb03

commit 09e18697732f90357db0b3241e563a4db8ebfb03
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Sat Oct 29 14:05:49 2011 -0400

    Typo in last checkin

diff --git a/elf/sprof.c b/elf/sprof.c
index 069649a..6182599 100644
--- a/elf/sprof.c
+++ b/elf/sprof.c
@@ -597,7 +597,7 @@ load_shobj (const char *name)
       char origprocname[sizeof (procpath) + sizeof (int) * 3];
       snprintf (origprocname, sizeof (origprocname), procpath, fd);
       char *origlink = (char *) alloca (PATH_MAX);
-      ssize_t n = readlink (origprocname, origlink, PATH_MAX)
+      ssize_t n = readlink (origprocname, origlink, PATH_MAX);
       if (n == -1)
 	goto no_debuginfo;
       origlink[n] = '\0';

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                      |    7 +++++++
 NEWS                           |    8 ++++----
 elf/sprof.c                    |    2 +-
 math/libm-test.inc             |    1 +
 sysdeps/ieee754/dbl-64/s_sin.c |    2 +-
 5 files changed, 14 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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