|
| From: | Philippe Mathieu-Daudé |
| Subject: | Re: [PATCH v7 08/10] util/bufferiszero: Simplify test_buffer_is_zero_next_accel |
| Date: | Tue, 30 Apr 2024 23:09:47 +0200 |
| User-agent: | Mozilla Thunderbird |
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-by: Richard Henderson <richard.henderson@linaro.org> --- util/bufferiszero.c | 81 ++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 46 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
| [Prev in Thread] | Current Thread | [Next in Thread] |