x86: move some inline asm macros to the only places they are used