summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/string.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-01-29 01:41:54 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-01-29 01:41:54 +0000
commitf969d69ba9f952e5bdd38278e25e26a3e4a61a70 (patch)
treeb3530d803df59d726afaabebc6626987dee1ca05 /include/asm-sh/string.h
parenta10ce7ef2066b455d69187643ddf2073bfc4db24 (diff)
Merge with 2.3.27.
Diffstat (limited to 'include/asm-sh/string.h')
-rw-r--r--include/asm-sh/string.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/include/asm-sh/string.h b/include/asm-sh/string.h
index 56ea9d8e8..bcff30489 100644
--- a/include/asm-sh/string.h
+++ b/include/asm-sh/string.h
@@ -120,24 +120,6 @@ extern void *memchr(const void *__s, int __c, size_t __n);
#define __HAVE_ARCH_BCOPY
#define __HAVE_ARCH_MEMSCAN
-extern __inline__ void *memscan(void *__addr, int __c, size_t __size)
-{
- register char *__end;
- unsigned long __dummy;
-
- __asm__("mov #0,%2\n"
- "1:\n\t"
- "cmp/eq %0,%1\n\t"
- "bt 2f\n\t"
- "cmp/eq %5,%2\n\t"
- "bf/s 1b\n\t"
- " mov.b @%0+,%2\n\t"
- "add #-1,%0\n\t"
- "2:"
- : "=r" (__addr), "=r" (__end), "=&z" (__dummy)
- : "0" (__addr), "1" ((char *)__addr + __size), "r" (__c));
-
- return __addr;
-}
+#define memscan memchr
#endif /* __ASM_SH_STRING_H */