Re: [PATCH v6 2/5] lib: implement __arch_bitrev8x4()

2016-12-20 Thread Joshua Clayton
Will, On 12/19/2016 02:06 AM, Will Deacon wrote: > On Fri, Dec 16, 2016 at 03:17:51PM -0800, Joshua Clayton wrote: >> Implement faster bitrev8x4() for arm, arm64 and mips, all the platforms >> with CONFIG_HAVE_ARCH_BITREVERSE. >> ARM platforms just need a byteswap added to the existing __arch_bit

Re: [PATCH v6 2/5] lib: implement __arch_bitrev8x4()

2016-12-19 Thread Will Deacon
On Fri, Dec 16, 2016 at 03:17:51PM -0800, Joshua Clayton wrote: > Implement faster bitrev8x4() for arm, arm64 and mips, all the platforms > with CONFIG_HAVE_ARCH_BITREVERSE. > ARM platforms just need a byteswap added to the existing __arch_bitrev32() > Amusingly, the mips implementation is exactly

[PATCH v6 2/5] lib: implement __arch_bitrev8x4()

2016-12-16 Thread Joshua Clayton
Implement faster bitrev8x4() for arm, arm64 and mips, all the platforms with CONFIG_HAVE_ARCH_BITREVERSE. ARM platforms just need a byteswap added to the existing __arch_bitrev32() Amusingly, the mips implementation is exactly the opposite, requiring removal of the byteswap from its __arch_bitrev32