linux-mips
[Top] [All Lists]

Re: [RFC] Optimize swab operations on mips_r2 cpu

To: Franck <vagabon.xyz@gmail.com>
Subject: Re: [RFC] Optimize swab operations on mips_r2 cpu
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 25 Jan 2006 12:47:39 +0000
Cc: linux-mips@linux-mips.org
In-reply-to: <cda58cb80601250136p5ee350e6g@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cda58cb80601250136p5ee350e6g@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.1i
On Wed, Jan 25, 2006 at 10:36:46AM +0100, Franck wrote:

> Here is a little patch to optimize swab operations by using "wsbh"
> instruction available on mips revision 2 cpus. I do not know what
> condition I should use to compile this only for mips r2 cpu though.
> 
> Comments ?

Looks good aside of the one issue you've already raised yourself:

> +/* FIXME: MIPS_R2 only */

  Ralf

<Prev in Thread] Current Thread [Next in Thread>