Revert "Got rid of software bitscans."

This reverts commit 53aaabc0e6d824c4733a4f8c3a09b0b6d898ebdb.