Re: [PATCH 2/5] x86_64, -march=native: POPCNT support

2019-07-23 Thread Alexey Dobriyan
On Tue, Jul 23, 2019 at 09:20:43AM +0200, Peter Zijlstra wrote: > On Tue, Jul 23, 2019 at 12:15:39AM +0300, Alexey Dobriyan wrote: > > On Mon, Jul 22, 2019 at 11:12:10PM +0200, Peter Zijlstra wrote: > > > On Mon, Jul 22, 2019 at 11:27:20PM +0300, Alexey Dobriyan wrote: > > > > Detect POPCNT instruc

Re: [PATCH 2/5] x86_64, -march=native: POPCNT support

2019-07-23 Thread Peter Zijlstra
On Tue, Jul 23, 2019 at 12:15:39AM +0300, Alexey Dobriyan wrote: > On Mon, Jul 22, 2019 at 11:12:10PM +0200, Peter Zijlstra wrote: > > On Mon, Jul 22, 2019 at 11:27:20PM +0300, Alexey Dobriyan wrote: > > > Detect POPCNT instruction support and inline hweigth*() functions > > > if it is supported by

Re: [PATCH 2/5] x86_64, -march=native: POPCNT support

2019-07-22 Thread Alexey Dobriyan
On Tue, Jul 23, 2019 at 12:15:39AM +0300, Alexey Dobriyan wrote: > On Mon, Jul 22, 2019 at 11:12:10PM +0200, Peter Zijlstra wrote: > > On Mon, Jul 22, 2019 at 11:27:20PM +0300, Alexey Dobriyan wrote: > > > Detect POPCNT instruction support and inline hweigth*() functions > > > if it is supported by

Re: [PATCH 2/5] x86_64, -march=native: POPCNT support

2019-07-22 Thread Alexey Dobriyan
On Mon, Jul 22, 2019 at 11:12:10PM +0200, Peter Zijlstra wrote: > On Mon, Jul 22, 2019 at 11:27:20PM +0300, Alexey Dobriyan wrote: > > Detect POPCNT instruction support and inline hweigth*() functions > > if it is supported by CPU. > > > > Detect POPCNT at boot time and conditionally refuse to boo

Re: [PATCH 2/5] x86_64, -march=native: POPCNT support

2019-07-22 Thread Peter Zijlstra
On Mon, Jul 22, 2019 at 11:27:20PM +0300, Alexey Dobriyan wrote: > Detect POPCNT instruction support and inline hweigth*() functions > if it is supported by CPU. > > Detect POPCNT at boot time and conditionally refuse to boot. > > Signed-off-by: Alexey Dobriyan > --- > arch/x86/include/asm/arch

[PATCH 2/5] x86_64, -march=native: POPCNT support

2019-07-22 Thread Alexey Dobriyan
Detect POPCNT instruction support and inline hweigth*() functions if it is supported by CPU. Detect POPCNT at boot time and conditionally refuse to boot. Signed-off-by: Alexey Dobriyan --- arch/x86/include/asm/arch_hweight.h | 24 +++ arch/x86/include/asm/segment.h

[PATCH 2/5] x86_64, -march=native: POPCNT support

2019-07-04 Thread Alexey Dobriyan
Detect POPCNT instruction support and inline hweigth*() functions if it is supported by CPU. Detect POPCNT at boot time and conditionally refuse to boot. Signed-off-by: Alexey Dobriyan --- arch/x86/include/asm/arch_hweight.h | 24 arch/x86/include/asm/segment.h |