patch-2.1.34 linux/include/asm-sparc64/string.h
Next file: linux/include/asm-sparc64/sysio.h
Previous file: linux/include/asm-sparc64/spitfire.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Fri Apr 11 10:47:40 1997
- Orig file:
v2.1.33/linux/include/asm-sparc64/string.h
- Orig date:
Mon Mar 17 14:54:34 1997
diff -u --recursive --new-file v2.1.33/linux/include/asm-sparc64/string.h linux/include/asm-sparc64/string.h
@@ -1,4 +1,4 @@
-/* $Id: string.h,v 1.3 1997/03/03 17:11:15 jj Exp $
+/* $Id: string.h,v 1.4 1997/04/01 09:34:41 davem Exp $
* string.h: External definitions for optimized assembly string
* routines for the Linux Kernel.
*
@@ -37,16 +37,18 @@
{
extern void __copy_1page(void *, const void *);
- if(n <= 32) {
- __builtin_memcpy(to, from, n);
- } else {
- switch(n) {
- case 8192:
- __copy_1page(to, from);
- break;
- default:
- __memcpy(to, from, n);
- break;
+ if(n) {
+ if(n <= 32) {
+ __builtin_memcpy(to, from, n);
+ } else {
+ switch(n) {
+ case 8192:
+ __copy_1page(to, from);
+ break;
+ default:
+ __memcpy(to, from, n);
+ break;
+ }
}
}
return to;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov