summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/string.c b/string.c
index c6b6de6..cb890ee 100644
--- a/string.c
+++ b/string.c
@@ -1,14 +1,10 @@
#include "types.h"
+#include "x86.h"
void*
memset(void *dst, int c, uint n)
{
- char *d;
-
- d = (char*)dst;
- while(n-- > 0)
- *d++ = c;
-
+ stosb(dst, c, n);
return dst;
}