Skip to content

Commit

Permalink
Optimize x86-64 SSE4.2 strcmp.
Browse files Browse the repository at this point in the history
The file contained some code which was never used.  Don't compile it
in.
  • Loading branch information
Ulrich Drepper committed Jul 25, 2009
1 parent da331e8 commit 29e92fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2009-07-25 Ulrich Drepper <drepper@redhat.com>

* sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
compiled in.

2009-07-24 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/configure.in: Don't automatically include
Expand Down
5 changes: 5 additions & 0 deletions sysdeps/x86_64/multiarch/strcmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,9 @@ LABEL(use_sse4_2_ret):
sub %edx, %eax
ret

#if 0
/* This code was in the origial submission but isn't used.
--drepper */
.p2align 4
LABEL(aftertail):
pcmpeqb %xmm3, %xmm1
Expand All @@ -1467,6 +1470,8 @@ LABEL(aftertail):
.p2align 4
LABEL(exit):
lea -16(%r9, %rcx), %rax /* locate the exact offset for rdi */
#endif

LABEL(less32bytes):
lea (%rdi, %rax), %rdi /* locate the exact address for first operand(rdi) */
lea (%rsi, %rcx), %rsi /* locate the exact address for second operand(rsi) */
Expand Down

0 comments on commit 29e92fa

Please sign in to comment.