]> sourceware.org Git - glibc.git/commit
x86-64: Optimize bzero
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 7 Feb 2022 13:55:15 +0000 (05:55 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 8 Feb 2022 23:58:56 +0000 (15:58 -0800)
commit3d9f171bfb5325bd5f427e9fc386453358c6e840
tree5caeddafa6cb494bbe102c34f7f2ee630f5d83cf
parentdc98eeeb952f59bdbd51da0409e732756fe30170
x86-64: Optimize bzero

memset with zero as the value to set is by far the majority value (99%+
for Python3 and GCC).

bzero can be slightly more optimized for this case by using a zero-idiom
xor for broadcasting the set value to a register (vector or GPR).

Co-developed-by: Noah Goldstein <goldstein.w.n@gmail.com>
sysdeps/x86_64/memset.S
sysdeps/x86_64/multiarch/Makefile
sysdeps/x86_64/multiarch/bzero.c [new file with mode: 0644]
sysdeps/x86_64/multiarch/ifunc-impl-list.c
sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms-rtm.S
sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S
sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S
sysdeps/x86_64/multiarch/memset-evex-unaligned-erms.S
sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S
sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
This page took 0.044867 seconds and 5 git commands to generate.