Skip to content
Commit 3d9f171b authored by H.J. Lu's avatar H.J. Lu
Browse files

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: default avatarNoah Goldstein <goldstein.w.n@gmail.com>
parent dc98eeeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment