summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-11 22:26:56 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-11 22:26:56 +0000
commit7500403c7b05536eafb0597613284416096be2a2 (patch)
treed69c27267d8657fddbcba1d0724d311cdc208aca /libc/string
parentd0c2fc99e181270291f0f09da87d29609ce6d328 (diff)
powerpc version of bzero using memset
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/wstring.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/string/wstring.c b/libc/string/wstring.c
index c9c8548fb..e4d0a39b3 100644
--- a/libc/string/wstring.c
+++ b/libc/string/wstring.c
@@ -1739,6 +1739,9 @@ Wchar *Wstpncpy(register Wchar * __restrict s1,
void __bzero(void *s, size_t n)
{
+#if 1
+ (void)memset(s, 0, n);
+#else
register unsigned char *p = s;
#ifdef __BCC__
/* bcc can optimize the counter if it thinks it is a pointer... */
@@ -1751,6 +1754,7 @@ void __bzero(void *s, size_t n)
*p++ = 0;
--np;
}
+#endif
}
weak_alias(__bzero,bzero);
#undef np