ia64/xen-unstable

changeset 10192:3ed325fa395b

Remove bogus inline asm of unused function memchr().
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri May 26 13:53:49 2006 +0100 (2006-05-26)
parents 2dc7c2712700
children 954f4dea9da6
files xen/include/asm-x86/string.h
line diff
     1.1 --- a/xen/include/asm-x86/string.h	Fri May 26 13:49:29 2006 +0100
     1.2 +++ b/xen/include/asm-x86/string.h	Fri May 26 13:53:49 2006 +0100
     1.3 @@ -112,22 +112,6 @@ extern void *memmove(void *dest, const v
     1.4  #define __HAVE_ARCH_MEMCMP
     1.5  #define memcmp __builtin_memcmp
     1.6  
     1.7 -#define __HAVE_ARCH_MEMCHR
     1.8 -static inline void *memchr(const void *cs, int c, size_t count)
     1.9 -{
    1.10 -    long d0;
    1.11 -    register void *__res;
    1.12 -    if ( count == 0 )
    1.13 -        return NULL;
    1.14 -    __asm__ __volatile__ (
    1.15 -        "   repne ; scasb\n"
    1.16 -        "   je   1f      \n"
    1.17 -        "   mov  $1,%0   \n"
    1.18 -        "1: dec  %0      \n"
    1.19 -        : "=D" (__res), "=&c" (d0) : "a" (c), "0" (cs), "1" (count) );
    1.20 -    return __res;
    1.21 -}
    1.22 -
    1.23  static inline void *__memset_generic(void *s, char c, size_t count)
    1.24  {
    1.25      long d0, d1;