patch-2.3.26 linux/include/asm-sh/string.h

Next file: linux/include/asm-sh/uaccess.h
Previous file: linux/include/asm-sh/spinlock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/include/asm-sh/string.h linux/include/asm-sh/string.h
@@ -120,24 +120,6 @@
 #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 */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)