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 0/4] Tune and tweak memmove/wordcopy code for Powerpc


The following series copies, tunes and tweaks the implementation of memove
and wordcopy functions for powerpc, with focus on power6 and power7.

The "Call memcpy when appropriate" optimization (4/4) could apply to other
architectures generically; but I can not make any claims to how
much improvement (if any) it provides for those archs.

Version 2 changes:
 - Per feedback, Added helper macros to the power6 versions of wordcopy.c
before populating the power7 subdir with copies of those files.
 - Eliminated the now redundant switch() statement calling the macro, in turn
eliminating the need for v1 patch 'convert switch to if-then-else'.
 - Dropped the v1 patch 'preload srcp values' patch (for now).  It was not
providing measurable improvement.

Will Schmidt (4):
      [Powerpc] tune/optimize memmove/wordcopy. Add helper macro to call MERGE.
      [Powerpc] tume/optimize memmove/wordcopy. Remove switch statement.
      [Powerpc] tune/optimize memmove/wordcopy. Populate power7 files.
      [Powerpc] tune/optimize memmove/wordcopy. Call memcpy when appropriate.


 sysdeps/powerpc/memmove.c                   |  120 +++++++++++++
 sysdeps/powerpc/powerpc32/power6/wordcopy.c |  131 +++-----------
 sysdeps/powerpc/powerpc32/power7/wordcopy.c |  218 +++++++++++++++++++++++
 sysdeps/powerpc/powerpc64/power6/wordcopy.c |  256 +++------------------------
 sysdeps/powerpc/powerpc64/power7/wordcopy.c |  218 +++++++++++++++++++++++
 5 files changed, 619 insertions(+), 324 deletions(-)
 create mode 100644 sysdeps/powerpc/memmove.c
 create mode 100644 sysdeps/powerpc/powerpc32/power7/wordcopy.c
 create mode 100644 sysdeps/powerpc/powerpc64/power7/wordcopy.c

-- 


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