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 25/27] S390: Optimize wmemset.


On 06/26/2015 03:53 PM, OndÅej BÃlka wrote:
On Fri, Jun 26, 2015 at 01:51:50PM +0200, Stefan Liebler wrote:
This patch provides optimized version of wmemset with the z13 vector
instructions.

Why do you optimize wmemset but not memset?

The current memset implementation uses mvc instruction.
It is optimized for setting one byte, which is still the preferred way
for memset. But setting four bytes with mvc is not optimized in this
way and thus only wmemset is optimized with vector instructions.



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