mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 19:50:03 +01:00
test: don't test for double alignment on i386. (#36986)
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@who-t.net>
(cherry picked from commit 8ef0974874)
Conflicts:
test/input.c
This commit is contained in:
parent
2647867c7c
commit
75f75d12cf
1 changed files with 3 additions and 0 deletions
|
|
@ -1213,8 +1213,11 @@ static void dix_valuator_alloc(void)
|
||||||
|
|
||||||
g_assert(v);
|
g_assert(v);
|
||||||
g_assert(v->numAxes == num_axes);
|
g_assert(v->numAxes == num_axes);
|
||||||
|
#ifndef __i386__
|
||||||
|
/* must be double-aligned on 64 bit */
|
||||||
g_assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0);
|
g_assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0);
|
||||||
g_assert(((void*)v->axes - (void*)v) % sizeof(double) == 0);
|
g_assert(((void*)v->axes - (void*)v) % sizeof(double) == 0);
|
||||||
|
#endif
|
||||||
num_axes ++;
|
num_axes ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue