[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4537458D.4050107@tls.msk.ru>
Date: Thu, 19 Oct 2006 13:29:49 +0400
From: Michael Tokarev <mjt@....msk.ru>
To: Akinobu Mita <akinobu.mita@...il.com>,
linux-kernel@...r.kernel.org, Antonino Daplas <adaplas@....net>
Subject: Re: [PATCH 3/6] video: use bitrev8
Akinobu Mita wrote:
> Use bitrev8 for nvidiafb, rivafb, and tgafb drivers
>
> Cc: Antonino Daplas <adaplas@....net>
> Signed-off-by: Akinobu Mita <akinobu.mita@...il.com>
>
> drivers/video/Kconfig | 3 ++
> drivers/video/nvidia/nv_accel.c | 35 -------------------------
> drivers/video/nvidia/nv_local.h | 11 +++++--
> drivers/video/nvidia/nv_proto.h | 1
> drivers/video/riva/fbdev.c | 44 +++----------------------------
> drivers/video/tgafb.c | 56 +++++++---------------------------------
> 6 files changed, 26 insertions(+), 124 deletions(-)
>
> Index: work-fault-inject/drivers/video/riva/fbdev.c
> ===================================================================
> --- work-fault-inject.orig/drivers/video/riva/fbdev.c
> +++ work-fault-inject/drivers/video/riva/fbdev.c
[]
> static inline void reverse_order(u32 *l)
> {
> u8 *a = (u8 *)l;
> - *a = byte_rev[*a], a++;
> - *a = byte_rev[*a], a++;
> - *a = byte_rev[*a], a++;
> - *a = byte_rev[*a];
> + a[0] = bitrev8(a[0]);
> + a[1] = bitrev8(a[1]);
> + a[2] = bitrev8(a[2]);
> + a[3] = bitrev8(a[3]);
> }
This looks like a good candidate for a common helper function, too.
/mjt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists