[PATCH] x86-64: Optimize memset for zeroing

Florian Weimer fw@deneb.enyo.de
Fri Dec 31 20:43:22 GMT 2021


* H. J. Lu via Libc-alpha:

> bzero is an alias of SSE2 memset in glibc.   Should we add __memsetzero
> like __memcmpeq?  It should be almost free in glibc.  GCC can use
> __memsetzero if it is available.

bzero does not have the interface ambiguity that bcmp has.  So the
only reason for not using it would be namespace cleanliness.


More information about the Libc-alpha mailing list