aboutsummaryrefslogtreecommitdiff
path: root/target/arm/vec_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-05-24 18:03:47 -0700
committerPeter Maydell <peter.maydell@linaro.org>2021-05-25 16:01:44 +0100
commit93966af1d38213b26ef6efc4719851cbc18ec64f (patch)
tree788b0fe9bc64a29ebfe101fb2d703a592e18b3c6 /target/arm/vec_helper.c
parenta5421b54c4a333c8b3aa342cae23180d8d0ecd04 (diff)
downloadqemu-93966af1d38213b26ef6efc4719851cbc18ec64f.zip
qemu-93966af1d38213b26ef6efc4719851cbc18ec64f.tar.gz
qemu-93966af1d38213b26ef6efc4719851cbc18ec64f.tar.bz2
target/arm: Move endian adjustment macros to vec_internal.h
We have two copies of these, one set of which is not complete. Move them to a common header. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210525010358.152808-82-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/vec_helper.c')
-rw-r--r--target/arm/vec_helper.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/target/arm/vec_helper.c b/target/arm/vec_helper.c
index 21ae125..f5af453 100644
--- a/target/arm/vec_helper.c
+++ b/target/arm/vec_helper.c
@@ -25,18 +25,6 @@
#include "qemu/int128.h"
#include "vec_internal.h"
-/* Note that vector data is stored in host-endian 64-bit chunks,
- so addressing units smaller than that needs a host-endian fixup. */
-#ifdef HOST_WORDS_BIGENDIAN
-#define H1(x) ((x) ^ 7)
-#define H2(x) ((x) ^ 3)
-#define H4(x) ((x) ^ 1)
-#else
-#define H1(x) (x)
-#define H2(x) (x)
-#define H4(x) (x)
-#endif
-
/* Signed saturating rounding doubling multiply-accumulate high half, 8-bit */
int8_t do_sqrdmlah_b(int8_t src1, int8_t src2, int8_t src3,
bool neg, bool round)