Re: [PATCH 0/6] bitset: more conversions to ffs

2020-11-19 Thread Akim Demaille
Hi Bruno, So I installed these commits. > Le 20 nov. 2020 à 00:05, Bruno Haible a écrit : > > Akim Demaille wrote: >>> Gnulib has modules integer_length, integer_length_l, integer_length_ll. >> >> Oh, yes. Why these names? > > The name 'integer-length' comes from ANSI Common Lisp [1]. > [...

Re: [PATCH 0/6] bitset: more conversions to ffs

2020-11-19 Thread Bruno Haible
Akim Demaille wrote: > > Gnulib has modules integer_length, integer_length_l, integer_length_ll. > > Oh, yes. Why these names? The name 'integer-length' comes from ANSI Common Lisp [1]. The suffixes exist because in C we need 3 different functions for 'unsigned int', 'unsigned long', and 'unsign

Re: [PATCH 0/6] bitset: more conversions to ffs

2020-11-19 Thread Akim Demaille
Hi Bruno, > Le 19 nov. 2020 à 16:04, Bruno Haible a écrit : > > Hi Akim, > >> When gnulib have fls* support, we will be able do the same for >> bitset_list_reverse > > Gnulib has modules integer_length, integer_length_l, integer_length_ll. Oh, yes. Why these names? "fls" feels more "natural

Re: [PATCH 0/6] bitset: more conversions to ffs

2020-11-19 Thread Bruno Haible
Hi Akim, > When gnulib have fls* support, we will be able do the same for > bitset_list_reverse Gnulib has modules integer_length, integer_length_l, integer_length_ll. That sounds like what you are asking for. Bruno

[PATCH 0/6] bitset: more conversions to ffs

2020-11-18 Thread Akim Demaille
With this, I believe I have used ffs everywhere possible. When gnulib have fls* support, we will be able do the same for bitset_list_reverse, but I'm not sure it's a frequent need. FWIW, I have run successfully the test suite of Bison on every single bitset implementation. Cheers! Akim Demaille