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 'unsigned long long' arguments.

> "fls" feels more "natural" in front of fss.
> But just as cryptic indeed.
> 
> I can see it is not POSIX, but
> 
> https://www.freebsd.org/cgi/man.cgi?query=fls&sektion=3&manpath=FreeBSD+7.1-RELEASE

ANSI Common Lisp predates FreeBSD 5.3 by 15 years :-)

Bruno

[1] 
http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/fun_integer-length.html


Reply via email to