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]

Re: [PATCH] Do not multiply by zero in bzero.


bzero is a rarely-used compatibility entry point in this century.
So I don't think it's really worthwhile to microoptimize bzero per
se.  It's far more common to call memset with a zero fill value.  So
if that case is suboptimal then that's the place to optimize, and if
the optimization is significant then it is probably worthwhile for
memset to detect zero fill as a special case.


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]