There was actually just one place in PixelShaderGen.cpp where I could change a multiplication/divide into a bit shift. If I missed anything, please tell me.