[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 12/15] target/arm: Move expand_pred_b to vec_internal.h
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 12/15] target/arm: Move expand_pred_b to vec_internal.h |
Date: |
Tue, 31 May 2022 13:30:21 +0100 |
On Fri, 27 May 2022 at 19:11, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Put the inline function near the array declaration.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/arm/vec_internal.h | 8 +++++++-
> target/arm/sve_helper.c | 9 ---------
> 2 files changed, 7 insertions(+), 10 deletions(-)
>
> diff --git a/target/arm/vec_internal.h b/target/arm/vec_internal.h
> index 1d63402042..d1a1ea4a66 100644
> --- a/target/arm/vec_internal.h
> +++ b/target/arm/vec_internal.h
> @@ -50,8 +50,14 @@
> #define H8(x) (x)
> #define H1_8(x) (x)
>
> -/* Data for expanding active predicate bits to bytes, for byte elements. */
> +/*
> + * Expand active predicate bits to bytes, for byte elements.
> + */
> extern const uint64_t expand_pred_b_data[256];
> +static inline uint64_t expand_pred_b(uint8_t byte)
> +{
> + return expand_pred_b_data[byte];
> +}
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH v3 06/15] target/arm: Rename sve_zcr_len_for_el to sve_vqm1_for_el, (continued)
- [PATCH v3 06/15] target/arm: Rename sve_zcr_len_for_el to sve_vqm1_for_el, Richard Henderson, 2022/05/27
- [PATCH v3 08/15] target/arm: Add el_is_in_host, Richard Henderson, 2022/05/27
- [PATCH v3 07/15] target/arm: Remove fp checks from sve_exception_el, Richard Henderson, 2022/05/27
- [PATCH v3 11/15] target/arm: Export sve contiguous ldst support functions, Richard Henderson, 2022/05/27
- [PATCH v3 10/15] target/arm: Split out load/store primitives to sve_ldst_internal.h, Richard Henderson, 2022/05/27
- [PATCH v3 12/15] target/arm: Move expand_pred_b to vec_internal.h, Richard Henderson, 2022/05/27
- Re: [PATCH v3 12/15] target/arm: Move expand_pred_b to vec_internal.h,
Peter Maydell <=
- [PATCH v3 13/15] target/arm: Use expand_pred_b in mve_helper.c, Richard Henderson, 2022/05/27
- [PATCH v3 14/15] target/arm: Move expand_pred_h to vec_internal.h, Richard Henderson, 2022/05/27
- [PATCH v3 15/15] target/arm: Export bfdotadd from vec_helper.c, Richard Henderson, 2022/05/27
- [PATCH v3 04/15] target/arm: Merge aarch64_sve_zcr_get_valid_len into caller, Richard Henderson, 2022/05/27