From 11ebbc8437af208f64861b7531502ff0eeb30e03 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Thu, 21 Feb 2013 17:17:09 -0800 Subject: [PATCH] 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 --- libc/arch-x86/string/bcmp.S | 33 --------------------------------- libc/include/strings.h | 1 - 2 files changed, 34 deletions(-) delete mode 100644 libc/arch-x86/string/bcmp.S diff --git a/libc/arch-x86/string/bcmp.S b/libc/arch-x86/string/bcmp.S deleted file mode 100644 index 4a88f66e9..000000000 --- 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 . - * Public domain. - */ - -#include - -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) diff --git a/libc/include/strings.h b/libc/include/strings.h index db2aa3a10..fbdcefc38 100644 --- a/libc/include/strings.h +++ b/libc/include/strings.h @@ -43,7 +43,6 @@ #include __BEGIN_DECLS -int bcmp(const void *, const void *, size_t); void bcopy(const void *, void *, size_t); void bzero(void *, size_t); int ffs(int);