[PATCH xserver] Disable check of double-aligned in test/input.c on Renesas SH

Peter Hutterer peter.hutterer at who-t.net
Wed Aug 10 23:11:10 PDT 2011


On Tue, Aug 09, 2011 at 11:00:34AM +0900, Nobuhiro Iwamatsu wrote:
> Renesas SH is not aligned at size of double.
> When structure has double value, It is aligned in 4byte (long).
> 
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
> ---
>  test/input.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/test/input.c b/test/input.c
> index 837ce49..6a0c523 100644
> --- a/test/input.c
> +++ b/test/input.c
> @@ -1223,7 +1223,7 @@ static void dix_valuator_alloc(void)
>  
>          assert(v);
>          assert(v->numAxes == num_axes);
> -#ifndef __i386__
> +#if !defined(__i386__) && !defined(__sh__)
>          /* must be double-aligned on 64 bit */
>          assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0);
>          assert(((void*)v->axes - (void*)v) % sizeof(double) == 0);
> -- 
> 1.7.5.4

merged, thanks.

Cheers,
  Peter


More information about the xorg-devel mailing list