The text 51bbd2db6fb6, as FreeBSD 7.4-RELEASE shipped it.
find first or last bit set in a bit string
ffsl(3) on FreeBSD now