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.23-148-g344303f


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  344303f3cfc072469c7c32de90952871c108afd5 (commit)
      from  aea44bf61aa3f27acbdb7648b6f5dc8882a8987b (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=344303f3cfc072469c7c32de90952871c108afd5

commit 344303f3cfc072469c7c32de90952871c108afd5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Apr 1 10:00:01 2016 -0700

    Test 64-byte alignment in memset benchtest
    
    Add 64-byte alignment tests in memset benchtest for 64-byte vector
    registers.
    
    	* benchtests/bench-memset.c (do_test): Support 64-byte
    	alignment.
    	(test_main): Test 64-byte alignment.

diff --git a/ChangeLog b/ChangeLog
index 160777a..fc86116 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
 
+	* benchtests/bench-memset.c (do_test): Support 64-byte
+	alignment.
+	(test_main): Test 64-byte alignment.
+
+2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
+
 	* benchtests/bench-memmove.c (test_main): Test 64-byte
 	alignment.
 
diff --git a/benchtests/bench-memset.c b/benchtests/bench-memset.c
index 6d3218a..98ec257 100644
--- a/benchtests/bench-memset.c
+++ b/benchtests/bench-memset.c
@@ -134,7 +134,7 @@ do_one_test (impl_t *impl, CHAR *s, int c __attribute ((unused)), size_t n)
 static void
 do_test (size_t align, int c, size_t len)
 {
-  align &= 7;
+  align &= 63;
   if ((align + len) * sizeof (CHAR) > page_size)
     return;
 
@@ -181,6 +181,11 @@ test_main (void)
       do_test (4, c, 64);
       do_test (2, c, 25);
     }
+  for (i = 33; i <= 256; i += 4)
+    {
+      do_test (0, c, 32 * i);
+      do_test (i, c, 32 * i);
+    }
 
   return ret;
 }

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

Summary of changes:
 ChangeLog                 |    6 ++++++
 benchtests/bench-memset.c |    7 ++++++-
 2 files changed, 12 insertions(+), 1 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]