Move some machine dependent functions to x86 architecture directory