tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Exporting ffs32/ffs64



On Mon, Aug 03, 2009 at 04:22:59PM +0100, Mindaugas Rasiukevicius wrote:
> Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:
> > > Why do you want to export ffsl and ffsll?
> > 
> > GNU compatibility. They are also provided as (optional?) builtins by
> > GCC. As with popcount, I consider the interface idiotic, but the cost of
> > supporting them is very low (two aliases).
> 
> Is there a way to #ifdef both ffsl/ll and popcountl/ll under _GNU_SOURCE
> or something similar? Also, do not recommend to use them in manual page.
> Cost is low, but it would be good to avoid putting it in libc namespace.

I don't see a strong reason for that. strings.h is already an extension
header (XSI option) and not base-line POSIX. I consider it a bug that
strings.h is included from string.h by default, but I guess it is too
insane to fix that.

Joerg


Home | Main Index | Thread Index | Old Index