This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed 02 Apr 2014 10:23:55 Siddhesh Poyarekar wrote: > On Tue, Apr 01, 2014 at 11:26:16AM -0700, Roland McGrath wrote: > > If you bzero before explicitly filling fields, does the compiler optimize > > to only zeroing the one unused field? If so, that seems more futureproof. > > It doesn't quite, but (now that I checked) it really only results in a > couple of additional instructions (as opposed to a function call that > I had implicitly assumed), so I'll add it anyway if you think it is > OK. This obviously also needs the previous patch that consolidates > the head initialization code. as a general thing, can we not use bzero ? like ever ? memset should be exactly the same. -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |