Moved SET_REGISTER_BITS into bitwise.h

Because the macro is so general it should be grouped with other bitwise
operations