diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-11 22:26:56 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-11 22:26:56 +0000 |
commit | 7500403c7b05536eafb0597613284416096be2a2 (patch) | |
tree | d69c27267d8657fddbcba1d0724d311cdc208aca /libc | |
parent | d0c2fc99e181270291f0f09da87d29609ce6d328 (diff) |
powerpc version of bzero using memset
Diffstat (limited to 'libc')
-rw-r--r-- | libc/string/wstring.c | 4 |
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 |