summaryrefslogtreecommitdiffstats
path: root/arch/alpha/lib/memset.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
committer <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
commitbeb116954b9b7f3bb56412b2494b562f02b864b1 (patch)
tree120e997879884e1b9d93b265221b939d2ef1ade1 /arch/alpha/lib/memset.c
parent908d4681a1dc3792ecafbe64265783a86c4cccb6 (diff)
Import of Linux/MIPS 2.1.14
Diffstat (limited to 'arch/alpha/lib/memset.c')
-rw-r--r--arch/alpha/lib/memset.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/arch/alpha/lib/memset.c b/arch/alpha/lib/memset.c
deleted file mode 100644
index d22d44424..000000000
--- a/arch/alpha/lib/memset.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * linux/arch/alpha/lib/memset.c
- *
- * Copyright (C) 1995 Linus Torvalds
- */
-
-/*
- * These are only slightly optimized so far..
- */
-
-#include <linux/types.h>
-
-void * __constant_c_memset(void * s, unsigned long c, long count)
-{
- unsigned long xs = (unsigned long) s;
-
- /*
- * the first and last parts could be done with just one
- * unaligned load/store, but I don't want to think about it
- */
- while (count > 0 && (xs & 7)) {
- *(char *) xs = c;
- count--; xs++;
- }
- while (count > 7) {
- *(unsigned long *) xs = c;
- count -=8; xs += 8;
- }
- while (count > 0) {
- *(char *) xs = c;
- count--; xs++;
- }
- return s;
-}
-
-void * __memset(void * s,char c,size_t count)
-{
- char *xs = (char *) s;
-
- while (count--)
- *xs++ = c;
-
- return s;
-}