patch-1.3.7 linux/arch/alpha/lib/memset.c
Next file: linux/arch/i386/Makefile
Previous file: linux/arch/alpha/lib/memcpy.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Wed Jul 5 12:53:22 1995
- Orig file:
v1.3.6/linux/arch/alpha/lib/memset.c
- Orig date:
Mon Jan 30 06:39:28 1995
diff -u --recursive --new-file v1.3.6/linux/arch/alpha/lib/memset.c linux/arch/alpha/lib/memset.c
@@ -10,7 +10,7 @@
#include <linux/types.h>
-void * __constant_c_memset(void * s, unsigned long c, long count)
+inline void * __constant_c_memset(void * s, unsigned long c, long count)
{
unsigned long xs = (unsigned long) s;
@@ -35,10 +35,6 @@
void * __memset(void * s,char c,size_t count)
{
- char *xs = (char *) s;
-
- while (count--)
- *xs++ = c;
-
+ __constant_c_memset(s,0x0101010101010101UL * (unsigned char) c, count);
return s;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this