* commit '72e983d62828e1db5049800b7edef5a1b0cbbcbd': libc: remove bcmp prototype
This commit is contained in:
commit
d470955eb5
@ -1,33 +0,0 @@
|
|||||||
/* $OpenBSD: bcmp.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */
|
|
||||||
/*
|
|
||||||
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
||||||
* Public domain.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <machine/asm.h>
|
|
||||||
|
|
||||||
ENTRY(bcmp)
|
|
||||||
pushl %edi
|
|
||||||
pushl %esi
|
|
||||||
movl 12(%esp),%edi
|
|
||||||
movl 16(%esp),%esi
|
|
||||||
xorl %eax,%eax /* clear return value */
|
|
||||||
cld /* set compare direction forward */
|
|
||||||
|
|
||||||
movl 20(%esp),%ecx /* compare by words */
|
|
||||||
shrl $2,%ecx
|
|
||||||
repe
|
|
||||||
cmpsl
|
|
||||||
jne L1
|
|
||||||
|
|
||||||
movl 20(%esp),%ecx /* compare remainder by bytes */
|
|
||||||
andl $3,%ecx
|
|
||||||
repe
|
|
||||||
cmpsb
|
|
||||||
je L2
|
|
||||||
|
|
||||||
L1: incl %eax
|
|
||||||
L2: popl %esi
|
|
||||||
popl %edi
|
|
||||||
ret
|
|
||||||
END(bcmp)
|
|
@ -43,7 +43,6 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int bcmp(const void *, const void *, size_t);
|
|
||||||
void bcopy(const void *, void *, size_t);
|
void bcopy(const void *, void *, size_t);
|
||||||
void bzero(void *, size_t);
|
void bzero(void *, size_t);
|
||||||
int ffs(int);
|
int ffs(int);
|
||||||
|
Loading…
Reference in New Issue
Block a user