This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Should we remove all internal usages of bcopy/bzero?
- To: drepper at cygnus dot com (Ulrich Drepper)
- Subject: Re: Should we remove all internal usages of bcopy/bzero?
- From: Roland McGrath <roland at frob dot com>
- Date: Sun, 16 Sep 2001 23:04:46 -0400 (EDT)
- Cc: "H . J . Lu" <hjl at lucon dot org>,GNU C Library <libc-alpha at sourceware dot cygnus dot com>
> Roland McGrath <roland@frob.com> writes:
>
> > For bzero, I wonder if it might not be worth having optimized memset
> > macros check __builtin_constant_p and == 0 and refer to the bzero code.
>
> Look at <bits/string2.h>
In that case, there is no particular reason not to change bzero calls
to memset.