[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stdbit-h, stdc_*: New modules, part of the stdbit module
From: |
Collin Funk |
Subject: |
Re: stdbit-h, stdc_*: New modules, part of the stdbit module |
Date: |
Wed, 15 May 2024 16:26:35 -0700 |
User-agent: |
Mozilla Thunderbird |
Hi Bruno,
On 5/15/24 4:06 PM, Bruno Haible wrote:
> The module 'stdbit' defines 70 functions, grouped into 14 function-like
> macros. Most packages will only need 1 or 2 among these 14 function groups.
> (For example, diffutils needs only 'stdc_bit_width'.)
Maybe it makes sense to provided a module covering all the stdbit.h
functions?
I can see a program wanting a majority/all of them and in that case it
might be nicer just to import a single module.
Also, should these functions be used to implement the count-* versions
used previously and ffs, ffsl, ffsll? That way any optimization
wizardry can be dealt with in a single place and benefit them all.
Collin