x86util: add and use RSHIFT/LSHIFT macros