Re: [PATCH] __div64_const32(): improve the generic C version

2019-08-30 Thread Arnd Bergmann
On Wed, Aug 21, 2019 at 5:05 AM Nicolas Pitre wrote: > > Let's rework that code to avoid large immediate values and convert some > 64-bit variables to 32-bit ones when possible. This allows gcc to > produce smaller and better code. This even produces optimal code on > RISC-V. > > Signed-off-by:

Re: [PATCH] __div64_const32(): improve the generic C version

2019-08-29 Thread Nicolas Pitre
Ping. On Tue, 20 Aug 2019, Nicolas Pitre wrote: > Let's rework that code to avoid large immediate values and convert some > 64-bit variables to 32-bit ones when possible. This allows gcc to > produce smaller and better code. This even produces optimal code on > RISC-V. > > Signed-off-by:

[PATCH] __div64_const32(): improve the generic C version

2019-08-20 Thread Nicolas Pitre
Let's rework that code to avoid large immediate values and convert some 64-bit variables to 32-bit ones when possible. This allows gcc to produce smaller and better code. This even produces optimal code on RISC-V. Signed-off-by: Nicolas Pitre diff --git a/include/asm-generic/div64.h