[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Remove bogus inline asm of unused function memchr().
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 10602076065759c58d9cc1be0c04241325539c8b # Parent 05782730877b4e8e85261aff9540b1b2597ffc86 Remove bogus inline asm of unused function memchr(). Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> xen-unstable changeset: 10172:3ed325fa395bb75f846b29bd3fa571ffc03eb5e4 xen-unstable date: Fri May 26 13:53:49 2006 +0100 --- xen/include/asm-x86/string.h | 16 ---------------- 1 files changed, 16 deletions(-) diff -r 05782730877b -r 106020760657 xen/include/asm-x86/string.h --- a/xen/include/asm-x86/string.h Fri May 26 13:55:03 2006 +0100 +++ b/xen/include/asm-x86/string.h Fri May 26 13:55:33 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |