[PATCH] Add ffs() to libiberty.
Mark Klein
mklein@dis.com
Mon Jul 9 18:34:00 GMT 2001
At 02:39 PM 7/6/2001 -0700, Richard Henderson wrote:
>On Wed, Jul 04, 2001 at 10:59:48PM -0700, Mark Klein wrote:
> > for (bit = 1; !(valu & 1); bit++)
> > valu >>= 1;
>
>I'd rather see a binary search. See bitmap.c (as of today)
>or longlong.h for examples.
Hi.
Is that a request to change the logic or simply a pointer to
an alternate algorithm for future reference?
--
Mark Klein DIS International, Ltd.
http://www.dis.com 415-892-8400
PGP Public Key Available
More information about the Gcc-patches
mailing list