Skip to content

Commit

Permalink
Remove dead code from x86-32 SSSE3 strncmp.
Browse files Browse the repository at this point in the history
  • Loading branch information
H.J. Lu authored and Ulrich Drepper committed Dec 2, 2010
1 parent 1e24cf6 commit 3a4a249
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
unused codes.

2010-11-30 Ulrich Drepper <drepper@gmail.com>

* sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
Expand Down
9 changes: 1 addition & 8 deletions sysdeps/i386/i686/multiarch/strcmp-ssse3.S
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ ENTRY (STRCMP)
movl CNT(%esp), %ebp
cmp $16, %ebp
jb L(less16bytes_sncmp)
jmp L(more16bytes)
#endif

#else
movzbl (%eax), %ecx
cmpb %cl, (%edx)
jne L(neq)
Expand Down Expand Up @@ -123,11 +121,6 @@ ENTRY (STRCMP)

add $8, %edx
add $8, %eax
#ifdef USE_AS_STRNCMP
cmp $8, %ebp
lea -8(%ebp), %ebp
je L(eq)
L(more16bytes):
#endif
movl %edx, %ecx
and $0xfff, %ecx
Expand Down

0 comments on commit 3a4a249

Please sign in to comment.