public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Clean strncmp implementations
@ 2023-02-28 17:23 Adhemerval Zanella
  2023-02-28 17:23 ` [PATCH 1/3] powerpc: Remove strncmp variants Adhemerval Zanella
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2023-02-28 17:23 UTC (permalink / raw)
  To: libc-alpha, Richard Henderson

While working to fix the crypto badsalttest failure (675bdaeeca7) I
noted that some implementation implements similar strategies used by
the generic implementation.  While alpha implements some unaligned
input optimization, powerpc just optimizes for aligned inputs.

Now that generic implementation allows both to use arch-specific
string compare functions (alpha and power7), it allows to just
remove this arch-specific code.

Adhemerval Zanella (3):
  powerpc: Remove strncmp variants
  powerpc: Remove powerpc64 strncmp variants
  alpha: Remove strncmp optimization

 sysdeps/alpha/strncmp.S                       | 276 ------------------
 .../powerpc32/power4/multiarch/Makefile       |   2 +-
 .../power4/multiarch/ifunc-impl-list.c        |   7 -
 .../power4/multiarch/strncmp-power7.S         |  38 ---
 .../power4/multiarch/strncmp-ppc32.S          |  40 ---
 .../powerpc32/power4/multiarch/strncmp.c      |  39 ---
 sysdeps/powerpc/powerpc32/power4/strncmp.S    | 196 -------------
 sysdeps/powerpc/powerpc32/power7/strncmp.S    | 199 -------------
 sysdeps/powerpc/powerpc32/strncmp.S           | 181 ------------
 sysdeps/powerpc/powerpc64/multiarch/Makefile  |   2 +-
 .../powerpc64/multiarch/ifunc-impl-list.c     |   2 -
 .../powerpc64/multiarch/strncmp-power7.S      |  23 --
 .../powerpc64/multiarch/strncmp-ppc64.S       |  26 --
 .../powerpc64/multiarch/strncmp-ppc64.c       |   7 +
 sysdeps/powerpc/powerpc64/multiarch/strncmp.c |   5 +-
 sysdeps/powerpc/powerpc64/power7/strncmp.S    | 228 ---------------
 sysdeps/powerpc/powerpc64/strncmp.S           | 210 -------------
 17 files changed, 10 insertions(+), 1471 deletions(-)
 delete mode 100644 sysdeps/alpha/strncmp.S
 delete mode 100644 sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S
 delete mode 100644 sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S
 delete mode 100644 sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c
 delete mode 100644 sysdeps/powerpc/powerpc32/power4/strncmp.S
 delete mode 100644 sysdeps/powerpc/powerpc32/power7/strncmp.S
 delete mode 100644 sysdeps/powerpc/powerpc32/strncmp.S
 delete mode 100644 sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S
 delete mode 100644 sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S
 create mode 100644 sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.c
 delete mode 100644 sysdeps/powerpc/powerpc64/power7/strncmp.S
 delete mode 100644 sysdeps/powerpc/powerpc64/strncmp.S

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-01  4:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-28 17:23 [PATCH 0/3] Clean strncmp implementations Adhemerval Zanella
2023-02-28 17:23 ` [PATCH 1/3] powerpc: Remove strncmp variants Adhemerval Zanella
2023-03-01  4:01   ` Rajalakshmi Srinivasaraghavan
2023-02-28 17:23 ` [PATCH 2/3] powerpc: Remove powerpc64 " Adhemerval Zanella
2023-03-01  4:01   ` Rajalakshmi Srinivasaraghavan
2023-02-28 17:24 ` [PATCH 3/3] alpha: Remove strncmp optimization Adhemerval Zanella
2023-02-28 19:11   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).