Skip to content
Commit 5cb63296 authored by H.J. Lu's avatar H.J. Lu Committed by Sunil K Pandey
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>
(cherry picked from commit 3d9f171b)
parent 190ea5f7
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