diff options
| author | Alexander Monakov <amonakov@ispras.ru> | 2024-02-06 23:48:05 +0300 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-05-03 08:03:05 -0700 |
| commit | cbe3d5264631aa193fd2705820cbde6c5a602abb (patch) | |
| tree | 8d7c64e91e3b1e7d595c0987a4453419e922ff70 /plugins/api.c | |
| parent | d018425c324704949c7f65230def9586e71f07f5 (diff) | |
| download | focaccia-qemu-cbe3d5264631aa193fd2705820cbde6c5a602abb.tar.gz focaccia-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 'plugins/api.c')
0 files changed, 0 insertions, 0 deletions