x86: merge the simple bitops and move them to bitops.h