This is the mail archive of the libc-alpha@sources.redhat.com 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]

Should we optimize memset to bzero?


Should we optimize memset to bzero? Like

#define memset(s, c, n) \
(__extension__ ((__builtin_constant_p (c) && (c) == 0) \
		? __bzero ((s), (n)) : __memset ((s), (c), (n)))


H.J.


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