diff options
Diffstat (limited to 'lib/libc/i386/string/bcmp.S')
-rw-r--r-- | lib/libc/i386/string/bcmp.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/i386/string/bcmp.S b/lib/libc/i386/string/bcmp.S index 21027dadd8b4..d19922498d88 100644 --- a/lib/libc/i386/string/bcmp.S +++ b/lib/libc/i386/string/bcmp.S @@ -14,7 +14,7 @@ * must display the following acknowledgement: * This product includes software developed by Winning Strategies, Inc. * 4. The name of the author may not be used to endorse or promote products - * derived from this software withough specific prior written permission + * derived from this software without specific prior written permission * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -27,11 +27,11 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: bcmp.S,v 1.1 1993/12/05 13:01:40 ats Exp $ + * $Id: bcmp.S,v 1.2 1994/03/31 14:10:57 davidg Exp $ */ #if defined(LIBC_RCS) && !defined(lint) - .asciz "$Id: bcmp.S,v 1.1 1993/12/05 13:01:40 ats Exp $" + .asciz "$Id: bcmp.S,v 1.2 1994/03/31 14:10:57 davidg Exp $" #endif /* LIBC_RCS and not lint */ #include "DEFS.h" @@ -48,17 +48,16 @@ ENTRY(bcmp) pushl %esi movl 12(%esp),%edi movl 16(%esp),%esi - movl 20(%esp),%edx xorl %eax,%eax /* clear return value */ cld /* set compare direction forward */ - movl %edx,%ecx /* compare by words */ + movl 20(%esp),%ecx /* compare by words */ shrl $2,%ecx repe cmpsl jne L1 - movl %edx,%ecx /* compare remainder by bytes */ + movl 20(%esp),%ecx /* compare remainder by bytes */ andl $3,%ecx repe cmpsb |