PixelShaderGen: Add helper macros to vastly clean up overflow+precision emulation. Also fixed some bitness emulation bugs.