Re: [PATCH v7 08/10] util/bufferiszero: Simplify test_buffer_is_zero_next_accel

2024-04-30 Thread Philippe Mathieu-Daudé
On 30/4/24 21:42, Richard Henderson wrote: 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. Signed-off-b

[PATCH v7 08/10] util/bufferiszero: Simplify test_buffer_is_zero_next_accel

2024-04-30 Thread Richard Henderson
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. Signed-off-by: Richard Henderson --- util/bufferiszero.