x86: generic versions of find_first_(zero_)bit, convert i386