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.19-67-gb8cd1c4


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  b8cd1c4ea5788d10bdb586f22a75f38f284ccdf0 (commit)
       via  bd939d23227e910e2726ac28d2c3b259869aa594 (commit)
      from  bc688c10296cb416c082e44aa8bf881505aec64a (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b8cd1c4ea5788d10bdb586f22a75f38f284ccdf0

commit b8cd1c4ea5788d10bdb586f22a75f38f284ccdf0
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Fri Feb 21 11:31:41 2014 +0530

    Minor formatting fix

diff --git a/ChangeLog b/ChangeLog
index 2a80e08..ddd3247 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* benchtests/bench-strrchr.c (do_test): Fix minor formatting.
+
 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
 
 	* benchtests/bench-strrchr.c: Print length instead of position.
diff --git a/benchtests/bench-strrchr.c b/benchtests/bench-strrchr.c
index 3d42236..d5b62e3 100644
--- a/benchtests/bench-strrchr.c
+++ b/benchtests/bench-strrchr.c
@@ -97,7 +97,7 @@ do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char)
   CHAR *buf = (CHAR *) buf1;
 
   align &= 7;
-  if ( (align + len) * sizeof(CHAR) >= page_size)
+  if ((align + len) * sizeof (CHAR) >= page_size)
     return;
 
   for (i = 0; i < len; ++i)
@@ -122,7 +122,7 @@ do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char)
   else
     result = NULL;
 
-  printf ("Length %4zd, alignment in bytes %2zd:", len, align * sizeof(CHAR));
+  printf ("Length %4zd, alignment in bytes %2zd:", len, align * sizeof (CHAR));
 
   FOR_EACH_IMPL (impl, 0)
     do_one_test (impl, (CHAR *) (buf + align), seek_char, result);

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=bd939d23227e910e2726ac28d2c3b259869aa594

commit bd939d23227e910e2726ac28d2c3b259869aa594
Author: Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Date:   Fri Feb 21 11:17:41 2014 +0530

    print length in strrchr benchtest
    
    The return criteria of strrchr() is to read till NULL even if the
    search character is hit.  So its better to print len instead of pos.

diff --git a/ChangeLog b/ChangeLog
index 4ad0fe6..2a80e08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
+
+	* benchtests/bench-strrchr.c: Print length instead of position.
+
 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #16611]
diff --git a/benchtests/bench-strrchr.c b/benchtests/bench-strrchr.c
index adcedde..3d42236 100644
--- a/benchtests/bench-strrchr.c
+++ b/benchtests/bench-strrchr.c
@@ -122,7 +122,7 @@ do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char)
   else
     result = NULL;
 
-  printf ("Length %4zd, alignment in bytes %2zd:", pos, align * sizeof(CHAR));
+  printf ("Length %4zd, alignment in bytes %2zd:", len, align * sizeof(CHAR));
 
   FOR_EACH_IMPL (impl, 0)
     do_one_test (impl, (CHAR *) (buf + align), seek_char, result);

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

Summary of changes:
 ChangeLog                  |    8 ++++++++
 benchtests/bench-strrchr.c |    4 ++--
 2 files changed, 10 insertions(+), 2 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]