public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Akinobu Mita <akinobu.mita@gmail.com>,
	linux-kernel@vger.kernel.org, Antonino Daplas <adaplas@pol.net>
Subject: Re: [PATCH 3/6] video: use bitrev8
Date: Thu, 19 Oct 2006 13:29:49 +0400	[thread overview]
Message-ID: <4537458D.4050107@tls.msk.ru> (raw)
In-Reply-To: <20061018164420.GC21820@localhost>

Akinobu Mita wrote:
> Use bitrev8 for nvidiafb, rivafb, and tgafb drivers
> 
> Cc: Antonino Daplas <adaplas@pol.net>
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.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

  reply	other threads:[~2006-10-19  9:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-18 16:44 [PATCH 3/6] video: use bitrev8 Akinobu Mita
2006-10-19  9:29 ` Michael Tokarev [this message]
2006-10-20  2:48   ` Akinobu Mita

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4537458D.4050107@tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=adaplas@pol.net \
    --cc=akinobu.mita@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox