i386: retire bcmp
Unused since ba96f37758
("Use __builtin for various mem* and b* (e.g. bzero)
routines.")
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
ebc52eabdc
commit
8e4f67f17f
@ -232,31 +232,6 @@ ENTRY(memcpy)
|
||||
ret
|
||||
END(memcpy)
|
||||
|
||||
ENTRY(bcmp)
|
||||
pushl %edi
|
||||
pushl %esi
|
||||
movl 12(%esp),%edi
|
||||
movl 16(%esp),%esi
|
||||
movl 20(%esp),%edx
|
||||
|
||||
movl %edx,%ecx
|
||||
shrl $2,%ecx
|
||||
repe
|
||||
cmpsl
|
||||
jne 1f
|
||||
|
||||
movl %edx,%ecx
|
||||
andl $3,%ecx
|
||||
repe
|
||||
cmpsb
|
||||
1:
|
||||
setne %al
|
||||
movsbl %al,%eax
|
||||
popl %esi
|
||||
popl %edi
|
||||
ret
|
||||
END(bcmp)
|
||||
|
||||
/*
|
||||
* Handling of special 386 registers and descriptor tables etc
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user