# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 3ed325fa395bb75f846b29bd3fa571ffc03eb5e4
# Parent 2dc7c271270055b8df6b063141a05dc0c92298b2
Remove bogus inline asm of unused function memchr().
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
xen/include/asm-x86/string.h | 16 ----------------
1 files changed, 16 deletions(-)
diff -r 2dc7c2712700 -r 3ed325fa395b xen/include/asm-x86/string.h
--- a/xen/include/asm-x86/string.h Fri May 26 13:49:29 2006 +0100
+++ b/xen/include/asm-x86/string.h Fri May 26 13:53:49 2006 +0100
@@ -112,22 +112,6 @@ extern void *memmove(void *dest, const v
#define __HAVE_ARCH_MEMCMP
#define memcmp __builtin_memcmp
-#define __HAVE_ARCH_MEMCHR
-static inline void *memchr(const void *cs, int c, size_t count)
-{
- long d0;
- register void *__res;
- if ( count == 0 )
- return NULL;
- __asm__ __volatile__ (
- " repne ; scasb\n"
- " je 1f \n"
- " mov $1,%0 \n"
- "1: dec %0 \n"
- : "=D" (__res), "=&c" (d0) : "a" (c), "0" (cs), "1" (count) );
- return __res;
-}
-
static inline void *__memset_generic(void *s, char c, size_t count)
{
long d0, d1;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|