diff options
author | 2024-02-06 23:48:05 +0300 | |
---|---|---|
committer | 2024-05-03 08:03:05 -0700 | |
commit | cbe3d5264631aa193fd2705820cbde6c5a602abb (patch) | |
tree | 8d7c64e91e3b1e7d595c0987a4453419e922ff70 /scripts/coverage/compare_gcov_json.py | |
parent | util/bufferiszero: Remove AVX512 variant (diff) | |
download | qemu-cbe3d5264631aa193fd2705820cbde6c5a602abb.tar.xz qemu-cbe3d5264631aa193fd2705820cbde6c5a602abb.zip |
util/bufferiszero: Reorganize for early test for acceleration
Test for length >= 256 inline, where is is often a constant.
Before calling into the accelerated routine, sample three bytes
from the buffer, which handles most non-zero buffers.
Signed-off-by: Alexander Monakov <amonakov@ispras.ru>
Signed-off-by: Mikhail Romanov <mmromanov@ispras.ru>
Message-Id: <20240206204809.9859-3-amonakov@ispras.ru>
[rth: Use __builtin_constant_p; move the indirect call out of line.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions