[PATCH v2] test: don't test for double alignment on i386. (#36986)

Peter Hutterer peter.hutterer at who-t.net
Thu May 19 21:05:47 PDT 2011


i386 is one of the few architectures that doesn't need double alignment.

X.Org Bug 36986 <http://bugs.freedesktop.org/show_bug.cgi?id=36986>

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Changes to v1:
- ifdef _LP64 → ifndef i386

 test/input.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/test/input.c b/test/input.c
index ac37d67..837ce49 100644
--- a/test/input.c
+++ b/test/input.c
@@ -1223,8 +1223,11 @@ static void dix_valuator_alloc(void)
 
         assert(v);
         assert(v->numAxes == num_axes);
+#ifndef __i386__
+        /* i386 doesn't need alignment on sizeof(double) */
         assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0);
         assert(((void*)v->axes - (void*)v) % sizeof(double) == 0);
+#endif
         num_axes ++;
     }
 
-- 
1.7.4.4



More information about the xorg-devel mailing list