mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/arm: Move expand_pred_h to vec_internal.h
Move the data to vec_helper.c and the inline to vec_internal.h. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220607203306.657998-18-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
05dd14bdfa
commit
a613cf2d4a
3 changed files with 33 additions and 29 deletions
|
@ -59,6 +59,13 @@ static inline uint64_t expand_pred_b(uint8_t byte)
|
|||
return expand_pred_b_data[byte];
|
||||
}
|
||||
|
||||
/* Similarly for half-word elements. */
|
||||
extern const uint64_t expand_pred_h_data[0x55 + 1];
|
||||
static inline uint64_t expand_pred_h(uint8_t byte)
|
||||
{
|
||||
return expand_pred_h_data[byte & 0x55];
|
||||
}
|
||||
|
||||
static inline void clear_tail(void *vd, uintptr_t opr_sz, uintptr_t max_sz)
|
||||
{
|
||||
uint64_t *d = vd + opr_sz;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue