On 5/13/10, Tanaka Akira <akr / fsij.org> wrote:
> 2010/5/12 caleb clausen <redmine / ruby-lang.org>:
>> Ffs is a bit-scanning routine present on most (all?) unix systems. On most
>> See http://linux.die.net/man/3/ffs
>
> I added ffs() function for Ruby internal.
> (I used it in time.c)
>
> So you don't need to provide ffs() in C level.

Nice! Thank you.

> I think Fixnum#ffs and Bignum#ffs should be separated from Thread#priority=
> issue.

Yeah, fair enough. I wanted to have it in ruby so I could write a test
for the back-up version of ffs I wrote in c. But I haven't written
that test yet... (Also, I've wanted ffs in ruby  before.) But it is a
different feature and doesn't really belong in this patch.