Be sure to use internal __ffs, not glibc variant