|
|
02abd8 |
From 8d379ad88e208bed9697065f6911c9ef83d85276 Mon Sep 17 00:00:00 2001
|
|
|
02abd8 |
From: Oded Gabbay <oded.gabbay@gmail.com>
|
|
|
02abd8 |
Date: Thu, 25 Jun 2015 15:59:56 +0300
|
|
|
02abd8 |
Subject: [PATCH 4/5] vmx: fix unused var warnings
|
|
|
02abd8 |
|
|
|
02abd8 |
v2: don't put ';' at the end of macro definition. Instead, move it to
|
|
|
02abd8 |
each line the macro is used.
|
|
|
02abd8 |
|
|
|
02abd8 |
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
|
|
|
02abd8 |
Reviewed-by: Adam Jackson <ajax@redhat.com>
|
|
|
02abd8 |
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
|
|
|
02abd8 |
---
|
|
|
02abd8 |
pixman/pixman-vmx.c | 89 ++++++++++++++++++++++++++++++++++-------------------
|
|
|
02abd8 |
1 file changed, 58 insertions(+), 31 deletions(-)
|
|
|
02abd8 |
|
|
|
02abd8 |
diff --git a/pixman/pixman-vmx.c b/pixman/pixman-vmx.c
|
|
|
02abd8 |
index f28a0fd..c963c28 100644
|
|
|
02abd8 |
--- a/pixman/pixman-vmx.c
|
|
|
02abd8 |
+++ b/pixman/pixman-vmx.c
|
|
|
02abd8 |
@@ -176,6 +176,9 @@ do { \
|
|
|
02abd8 |
vec_perm (tmp1, tmp2, mask ## _mask); \
|
|
|
02abd8 |
} while (0);
|
|
|
02abd8 |
|
|
|
02abd8 |
+#define DECLARE_SRC_MASK_VAR vector unsigned char src_mask
|
|
|
02abd8 |
+#define DECLARE_MASK_MASK_VAR vector unsigned char mask_mask
|
|
|
02abd8 |
+
|
|
|
02abd8 |
#else
|
|
|
02abd8 |
|
|
|
02abd8 |
/* Now the COMPUTE_SHIFT_{MASK, MASKS, MASKC} below are just no-op.
|
|
|
02abd8 |
@@ -198,6 +201,9 @@ do { \
|
|
|
02abd8 |
v ## dest = *((typeof(v ## dest)*)dest); \
|
|
|
02abd8 |
v ## mask = *((typeof(v ## mask)*)mask);
|
|
|
02abd8 |
|
|
|
02abd8 |
+#define DECLARE_SRC_MASK_VAR
|
|
|
02abd8 |
+#define DECLARE_MASK_MASK_VAR
|
|
|
02abd8 |
+
|
|
|
02abd8 |
#endif /* WORDS_BIGENDIAN */
|
|
|
02abd8 |
|
|
|
02abd8 |
#define LOAD_VECTORSM(dest, source, mask) \
|
|
|
02abd8 |
@@ -215,7 +221,7 @@ vmx_combine_over_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -265,7 +271,8 @@ vmx_combine_over_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -336,7 +343,7 @@ vmx_combine_over_reverse_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -384,7 +391,8 @@ vmx_combine_over_reverse_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -452,7 +460,7 @@ vmx_combine_in_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -497,7 +505,8 @@ vmx_combine_in_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -562,7 +571,7 @@ vmx_combine_in_reverse_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -609,7 +618,8 @@ vmx_combine_in_reverse_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -676,7 +686,7 @@ vmx_combine_out_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -723,7 +733,8 @@ vmx_combine_out_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -788,7 +799,7 @@ vmx_combine_out_reverse_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -836,7 +847,8 @@ vmx_combine_out_reverse_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -903,7 +915,7 @@ vmx_combine_atop_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -955,7 +967,8 @@ vmx_combine_atop_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1031,7 +1044,7 @@ vmx_combine_atop_reverse_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1083,7 +1096,8 @@ vmx_combine_atop_reverse_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1159,7 +1173,7 @@ vmx_combine_xor_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1211,7 +1225,8 @@ vmx_combine_xor_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1287,7 +1302,7 @@ vmx_combine_add_u_no_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc;
|
|
|
02abd8 |
- vector unsigned char src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1333,7 +1348,8 @@ vmx_combine_add_u_mask (uint32_t * dest,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1401,7 +1417,8 @@ vmx_combine_src_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1451,7 +1468,8 @@ vmx_combine_over_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1509,7 +1527,8 @@ vmx_combine_over_reverse_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1565,7 +1584,8 @@ vmx_combine_in_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char src_mask, mask_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1619,7 +1639,8 @@ vmx_combine_in_reverse_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char mask_mask, src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1674,7 +1695,8 @@ vmx_combine_out_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char mask_mask, src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1731,7 +1753,8 @@ vmx_combine_out_reverse_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char mask_mask, src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1788,7 +1811,8 @@ vmx_combine_atop_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask, vsrca;
|
|
|
02abd8 |
- vector unsigned char mask_mask, src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1854,7 +1878,8 @@ vmx_combine_atop_reverse_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char mask_mask, src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1917,7 +1942,8 @@ vmx_combine_xor_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char mask_mask, src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
@@ -1980,7 +2006,8 @@ vmx_combine_add_ca (pixman_implementation_t *imp,
|
|
|
02abd8 |
{
|
|
|
02abd8 |
int i;
|
|
|
02abd8 |
vector unsigned int vdest, vsrc, vmask;
|
|
|
02abd8 |
- vector unsigned char mask_mask, src_mask;
|
|
|
02abd8 |
+ DECLARE_SRC_MASK_VAR;
|
|
|
02abd8 |
+ DECLARE_MASK_MASK_VAR;
|
|
|
02abd8 |
|
|
|
02abd8 |
while (width && ((uintptr_t)dest & 15))
|
|
|
02abd8 |
{
|
|
|
02abd8 |
--
|
|
|
02abd8 |
2.4.3
|
|
|
02abd8 |
|