RE: [RFC V5 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-30 Thread Wang, Yalin
7;; 'linux...@kvack.org'; > 'linux-arm-ker...@lists.infradead.org' > Subject: Re: [RFC V5 3/3] arm64:add bitrev.h file to support rbit > instruction > > > +static __always_inline __attribute_const__ u32 __arch_bitrev32(u32 x) > > +{ > > + if (__bu

Re: [RFC V5 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-30 Thread Will Deacon
On Thu, Oct 30, 2014 at 12:26:42PM +, Ard Biesheuvel wrote: > On 30 October 2014 13:01, Will Deacon wrote: > > On Wed, Oct 29, 2014 at 05:52:00AM +, Wang, Yalin wrote: > >> This patch add bitrev.h file to support rbit instruction, > >> so that we can do bitrev operation by hardware. > >> S

Re: [RFC V5 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-30 Thread Ard Biesheuvel
On 30 October 2014 13:01, Will Deacon wrote: > On Wed, Oct 29, 2014 at 05:52:00AM +, Wang, Yalin wrote: >> This patch add bitrev.h file to support rbit instruction, >> so that we can do bitrev operation by hardware. >> Signed-off-by: Yalin Wang >> --- >> arch/arm64/Kconfig | 1

Re: [RFC V5 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-30 Thread Will Deacon
On Wed, Oct 29, 2014 at 05:52:00AM +, Wang, Yalin wrote: > This patch add bitrev.h file to support rbit instruction, > so that we can do bitrev operation by hardware. > Signed-off-by: Yalin Wang > --- > arch/arm64/Kconfig | 1 + > arch/arm64/include/asm/bitrev.h | 28 +++