Re: [PATCH 3/8] lib/lzo: enable 64-bit CTZ on Arm

2018-12-06 Thread Markus F.X.J. Oberhumer
I think that LZO_USE_CTZ64 should only be defined for ARM64 and not for 32-bit ARM. On 2018-11-30 15:26, Dave Rodgman wrote: > From: Matt Sealey > > ARMv6 Thumb state introduced an RBIT instruction which, combined with CLZ > as present in ARMv5, introduces an extremely fast path for counting >

[PATCH 3/8] lib/lzo: enable 64-bit CTZ on Arm

2018-11-30 Thread Dave Rodgman
From: Matt Sealey ARMv6 Thumb state introduced an RBIT instruction which, combined with CLZ as present in ARMv5, introduces an extremely fast path for counting trailing zeroes. Enable the use of the GCC builtin for this on ARMv6+ with CONFIG_THUMB2_KERNEL to ensure we get the 'new' instruction u

[PATCH 3/8] lib/lzo: enable 64-bit CTZ on Arm

2018-11-30 Thread Dave Rodgman
From: Matt Sealey ARMv6 Thumb state introduced an RBIT instruction which, combined with CLZ as present in ARMv5, introduces an extremely fast path for counting trailing zeroes. Enable the use of the GCC builtin for this on ARMv6+ with CONFIG_THUMB2_KERNEL to ensure we get the 'new' instruction u