]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/bufferiszero: Simplify test_buffer_is_zero_next_accel
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 15 Feb 2024 07:10:56 +0000 (21:10 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 3 May 2024 15:03:05 +0000 (08:03 -0700)
commitbf67aa3dd2d8b28d7618d8ec62cd9f6055366751
treebee88905b81022aacb1b3d95cf2f4504012ca073
parent0100ce2b49725e6ba2fbe8301855978d5d3dc790
util/bufferiszero: Simplify test_buffer_is_zero_next_accel

Because the three alternatives are monotonic, we don't need
to keep a couple of bitmasks, just identify the strongest
alternative at startup.

Generalize test_buffer_is_zero_next_accel and init_accel
by always defining an accel_table array.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
util/bufferiszero.c