From dbda6079a64a9dbc6dfb24280af01e871e6f7de5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 30 Jun 2000 19:46:39 +0000 Subject: Update. 2000-06-30 Ulrich Drepper * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case. --- sysdeps/i386/i686/strcmp.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/i386/i686/strcmp.S b/sysdeps/i386/i686/strcmp.S index b353db7..eeaa393 100644 --- a/sysdeps/i386/i686/strcmp.S +++ b/sysdeps/i386/i686/strcmp.S @@ -51,6 +51,11 @@ L(oop): movb (%ecx), %al CHECK_BOUNDS_HIGH (%edx, STR2(%esp), jbe) jmp L(out) +#ifndef __BOUNDED_POINTERS__ +L(neq): movl $1, %eax + movl $-1, %ecx + cmovbl %ecx, %eax +#else L(neq): movl $1, %eax ja L(chk) negl %eax @@ -58,6 +63,7 @@ L(neq): movl $1, %eax the unequal characters. */ L(chk): CHECK_BOUNDS_HIGH (%ecx, STR1(%esp), jb) CHECK_BOUNDS_HIGH (%edx, STR2(%esp), jb) +#endif L(out): LEAVE ret -- cgit v1.1