summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-02-21 17:17:09 -0800
committerNick Kralevich <nnk@google.com>2013-02-21 17:17:09 -0800
commit11ebbc8437af208f64861b7531502ff0eeb30e03 (patch)
tree0fbde52d13d9be98860d588530a320e4d7b3427f /libc/arch-x86
parentccd403161cdcc88a0ffcaecd1bc707e2d4c88a1c (diff)
downloadbionic-11ebbc8437af208f64861b7531502ff0eeb30e03.zip
bionic-11ebbc8437af208f64861b7531502ff0eeb30e03.tar.gz
bionic-11ebbc8437af208f64861b7531502ff0eeb30e03.tar.bz2
libc: remove bcmp prototype
AFAIK, bionic only ever provided an implementation of bcmp for x86, and even then, the code was never actually compiled. Remove the prototype. bcmp() has been obsoleted and replaced by memcmp() Change-Id: I549d02ab6a9241a9acbbbfade0d98a9a02c2eaee
Diffstat (limited to 'libc/arch-x86')
-rw-r--r--libc/arch-x86/string/bcmp.S33
1 files changed, 0 insertions, 33 deletions
diff --git a/libc/arch-x86/string/bcmp.S b/libc/arch-x86/string/bcmp.S
deleted file mode 100644
index 4a88f66..0000000
--- a/libc/arch-x86/string/bcmp.S
+++ /dev/null
@@ -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)