Re: [PATCH] MIPS: Implement __arch_bitrev* using bitswap for MIPSr6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 06, 2016 at 01:35:03PM +0100, Paul Burton wrote:

> Release 6 of the MIPS architecture introduced the bitswap instruction,
> which reverses the bits within each byte of a word. Make use of this
> instruction to implement the __arch_bitrev* functions, which should be
> faster for most MIPSr6 CPUs, reduces code size slightly and allows us to
> avoid the lookup table used by the generic implementation, saving 256
> bytes in the kernel binary by dropping that.
> 
> Signed-off-by: Paul Burton <paul.burton@xxxxxxxxxx>

Applied after fixing up a trivial conflict.  It would be a bit cleaner
if <asm/bitrev.h> was including <linux/types.h> itself.  <linux/swab.h>
does so but there's no guarantee for that.

  Ralf




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux