diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-05-26 13:53:49 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-05-26 13:53:49 +0100 |
commit | 14602c7ac9265f689b7435c1df93ab2256e7c65d (patch) | |
tree | df45ed2eb77ea7f393c3f5da7c9e173d4c3be8ca /xen/include/asm-x86/string.h | |
parent | 3afabf1400ebc2866d021aa679df5c4839259f35 (diff) | |
download | xen-14602c7ac9265f689b7435c1df93ab2256e7c65d.tar.gz xen-14602c7ac9265f689b7435c1df93ab2256e7c65d.tar.bz2 xen-14602c7ac9265f689b7435c1df93ab2256e7c65d.zip |
Remove bogus inline asm of unused function memchr().
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/string.h')
-rw-r--r-- | xen/include/asm-x86/string.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/xen/include/asm-x86/string.h b/xen/include/asm-x86/string.h index 0003d87425..3785004f9e 100644 --- a/xen/include/asm-x86/string.h +++ b/xen/include/asm-x86/string.h @@ -112,22 +112,6 @@ extern void *memmove(void *dest, const void *src, size_t n); #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; |