The text a643f2d34fe1, as FreeBSD 8.2-RELEASE shipped it.
find first or last bit set in a bit string
ffs(3) on FreeBSD now