patch-2.3.24 linux/include/asm-sh/string.h
Next file: linux/include/asm-sh/system.h
Previous file: linux/include/asm-sh/spinlock.h
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Mon Oct 25 10:59:18 1999
- Orig file:
v2.3.23/linux/include/asm-sh/string.h
- Orig date:
Tue Aug 31 17:29:14 1999
diff -u --recursive --new-file v2.3.23/linux/include/asm-sh/string.h linux/include/asm-sh/string.h
@@ -18,9 +18,9 @@
"cmp/eq #0,%2\n\t"
"bf/s 1b\n\t"
" add #1,%0\n\t"
- :"=&r" (__dest), "=&r" (__src), "=&z" (__dummy)
- :"0" (__dest), "1" (__src)
- :"memory");
+ : "=r" (__dest), "=r" (__src), "=&z" (__dummy)
+ : "0" (__dest), "1" (__src)
+ : "memory");
return __xdest;
}
@@ -37,12 +37,12 @@
__asm__ __volatile__(
"1:\n"
"mov.b @%1+,%2\n\t"
- "mov.b %2,@%0\n\t"
- "cmp/eq #0,%2\n\t"
- "bt/s 2f\n\t"
- " cmp/eq %5,%1\n\t"
- "bf/s 1b\n\t"
- " add #1,%0\n"
+ "mov.b %2,@%0\n\t"
+ "cmp/eq #0,%2\n\t"
+ "bt/s 2f\n\t"
+ " cmp/eq %5,%1\n\t"
+ "bf/s 1b\n\t"
+ " add #1,%0\n"
"2:"
: "=r" (__dest), "=r" (__src), "=&z" (__dummy)
: "0" (__dest), "1" (__src), "r" (__src+__n)
@@ -112,6 +112,9 @@
#define __HAVE_ARCH_MEMMOVE
extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
+
+#define __HAVE_ARCH_MEMCHR
+extern void *memchr(const void *__s, int __c, size_t __n);
/* Don't build bcopy at all ... */
#define __HAVE_ARCH_BCOPY
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)