Re: [PATCH] Make BITMAP_WORD more easily configurable

2019-08-01 Thread Martin Sebor
On 8/1/19 2:49 AM, Richard Biener wrote: On Wed, 31 Jul 2019, Martin Sebor wrote: On 7/31/19 4:00 AM, Richard Biener wrote: On Tue, 30 Jul 2019, Martin Sebor wrote: On 7/30/19 9:19 AM, Jakub Jelinek wrote: On Tue, Jul 30, 2019 at 09:16:45AM -0600, Martin Sebor wrote: Say something like thi

Re: [PATCH] Make BITMAP_WORD more easily configurable

2019-08-01 Thread Richard Biener
On Wed, 31 Jul 2019, Martin Sebor wrote: > On 7/31/19 4:00 AM, Richard Biener wrote: > > On Tue, 30 Jul 2019, Martin Sebor wrote: > > > > > On 7/30/19 9:19 AM, Jakub Jelinek wrote: > > > > On Tue, Jul 30, 2019 at 09:16:45AM -0600, Martin Sebor wrote: > > > > > Say something like this POC: > > > >

Re: [PATCH] Make BITMAP_WORD more easily configurable

2019-07-31 Thread Martin Sebor
On 7/31/19 4:00 AM, Richard Biener wrote: On Tue, 30 Jul 2019, Martin Sebor wrote: On 7/30/19 9:19 AM, Jakub Jelinek wrote: On Tue, Jul 30, 2019 at 09:16:45AM -0600, Martin Sebor wrote: Say something like this POC: We have those already, see ctz_hwi, clz_hwi etc. The thing is that BITMAP_WO

Re: [PATCH] Make BITMAP_WORD more easily configurable

2019-07-31 Thread Richard Biener
On Tue, 30 Jul 2019, Martin Sebor wrote: > On 7/30/19 9:19 AM, Jakub Jelinek wrote: > > On Tue, Jul 30, 2019 at 09:16:45AM -0600, Martin Sebor wrote: > > > Say something like this POC: > > > > We have those already, see ctz_hwi, clz_hwi etc. > > The thing is that BITMAP_WORD isn't always the same

Re: [PATCH] Make BITMAP_WORD more easily configurable

2019-07-30 Thread Martin Sebor
On 7/30/19 9:19 AM, Jakub Jelinek wrote: On Tue, Jul 30, 2019 at 09:16:45AM -0600, Martin Sebor wrote: Say something like this POC: We have those already, see ctz_hwi, clz_hwi etc. The thing is that BITMAP_WORD isn't always the same type as unsigned HOST_WIDE_INT, and so we need ones with the

Re: [PATCH] Make BITMAP_WORD more easily configurable

2019-07-30 Thread Jakub Jelinek
On Tue, Jul 30, 2019 at 09:16:45AM -0600, Martin Sebor wrote: > Say something like this POC: We have those already, see ctz_hwi, clz_hwi etc. The thing is that BITMAP_WORD isn't always the same type as unsigned HOST_WIDE_INT, and so we need ones with the BITMAP_WORD type. Jakub

Re: [PATCH] Make BITMAP_WORD more easily configurable

2019-07-30 Thread Martin Sebor
On 7/30/19 8:37 AM, Richard Biener wrote: I've played with different BITMAP_WORD and BITMAP_ELEMENT_WORDS values and found the code using CTZ and friends a bit unwieldly to adjust. So I came up with a set of macros wrapping them (_maybe_ inline overloads would be a cleaner solution, but ...).